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
The problem happens not only with Compress-Archive, but with other archive programs too. So macOS users need a way to bulk-rename files with \ in the name and PS doesn't provide a way to do it at the moment.
UPD: same problem for paths like [foo].
Expected behavior
PowerShell should be able to perform the operations
Actual behavior
Paths are getting normalized to 1/2
rm : Cannot find path '/Users/vors/dev/PowerShell/1/2' because it does not exist.
Steps to reproduce
On macOS or Linux
touch '1\2'Try
mv 1\2 2, tryrm 1\2The real-world example of when you are getting
\without knowing it is https://github.com/PowerShell/Microsoft.PowerShell.Archive/issues/11The problem happens not only with
Compress-Archive, but with other archive programs too. So macOS users need a way to bulk-rename files with\in the name and PS doesn't provide a way to do it at the moment.UPD: same problem for paths like
[foo].Expected behavior
PowerShell should be able to perform the operations
Actual behavior
Paths are getting normalized to
1/2Environment data