This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients 888xray999, eryksun, paul.j3, rhettinger
Date 2020-03-15.16:39:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584290354.7.0.984890528013.issue39845@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-03-15 16:39:14eryksunsetrecipients: + eryksun, rhettinger, paul.j3, 888xray999
2020-03-15 16:39:14eryksunsetmessageid: <1584290354.7.0.984890528013.issue39845@roundup.psfhosted.org>
2020-03-15 16:39:14eryksunlinkissue39845 messages
2020-03-15 16:39:14eryksuncreate