New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REVERTED: process.Parser strips escaping backslash #10114
Conversation
`"""echo \"hello world\" """.!!` should behave like `echo \"hello world\"` in the shell, with result `"hello world"`. The two arguments are `"hello` and `world"`.
@som-snytt regression (not sure whether a real regression, or whether it's just surfacing a flaw in test-only code) on Windows: scala/scala-dev#814 |
Related to the deduplication of cmd.CommandLineParser and sys.Process.Parser in 0500158. I guess the use case of Settings.processArgumentString ought to skip the new escaping logic? Or is this a general Windows problem for sys.process users as well who would be suprised to see "Process("java.exe c:\temp.jar"") interpret the |
In my excitement, I forgot that I commented previously on the anomaly of Windows paths and escapes. Maybe that was in the context of escapes in string interpolations. I'll take a look shortly, and warn myself on the corresponding dotty PR. |
reverted (at least until after 2.13.9 is out) by #10128 |
We're not the only ones. |
It's all CP/M's fault! |
"""echo \"hello world\" """.!!
should behave likeecho \"hello world\"
in the shell, with result"hello world"
. The two arguments are"hello
and
world"
.scala/bug#12611 (comment)