You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Copy-Item, Move-Item, and Rename-Item cmdlets reject "reserved device names" on Linux #3221
On Linux these cmdlets throw an error when attempting to use one of Window's reserved device names (CON, PRN, AUX, etc.) as a target. These names are not reserved on Linux and should not be rejected.
Steps to reproduce
touch afile Copy-Item afile CON
Expected behavior
File 'afile' is copied to file 'CON'
Actual behavior
copy-item : Cannot process path '/home/jeff/CON' because the target represents a
reserved device name.
At line:1 char:1
+ copy-item stuff CON
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (/home/jeff/CON:String) [Copy-Item], IOException
+ FullyQualifiedErrorId : CopyError,Microsoft.PowerShell.Commands.CopyItemCommand
Activity