Message364246
PowerShell translates single quotes to double quotes when they're used to delimit a string in the command line, which complies with VC++ command-line parsing and CommandLineToArgvW [1]. But PowerShell 5 has a bug here. It translates 'C:\unu doi\' into "C:\unu doi\". A double quote preceded by a backslash is parsed as a literal double quote. It should escape the trailing backslash as two backslashes, i.e. "C:\unu doi\\". PowerShell 6 (pwsh) implements it correctly.
[1]: https://docs.microsoft.com/en-us/cpp/c-language/parsing-c-command-line-arguments?view=vs-2019 |
|
Date |
User |
Action |
Args |
2020-03-15 16:39:14 | eryksun | set | recipients:
+ eryksun, rhettinger, paul.j3, 888xray999 |
2020-03-15 16:39:14 | eryksun | set | messageid: <1584290354.7.0.984890528013.issue39845@roundup.psfhosted.org> |
2020-03-15 16:39:14 | eryksun | link | issue39845 messages |
2020-03-15 16:39:14 | eryksun | create | |
|