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
scalac @file expects an arg per line instead of parsing argfile lines. This breaks existing argfiles.
Instead, respect javac conventions (which appear to be similar to previous behavior):
An argument file can include command-line options and source file names in any combination. The arguments within a file can be separated by spaces or new line characters. If a file name contains embedded spaces, then put the whole file name in double quotation marks.
javac tolerates the following variant quotations:
-d "target dir"
-d "target di"r
-d "targ"et
-d "target
-d 'target dir'
The following creates the output dir target dir", and demonstrates that javac does not model fine behavior.
-d 'targetdir"
Problem
Maintain compatibility with once and future versions, including WWJD.
Per the doc for javac, quotation is intended to support spaces in file paths, as opposed to shell-style command lines.
Reproduction steps
Scala version: 2.13.10
scalac @file
expects an arg per line instead of parsing argfile lines. This breaks existing argfiles.Instead, respect
javac
conventions (which appear to be similar to previous behavior):javac
tolerates the following variant quotations:The following creates the output dir
target dir"
, and demonstrates thatjavac
does not model fine behavior.Problem
Maintain compatibility with once and future versions, including WWJD.
Per the doc for
javac
, quotation is intended to support spaces in file paths, as opposed to shell-style command lines.Noticed at scala/scala#10316
The text was updated successfully, but these errors were encountered: