run
command loses double quotes from the arguments in Fork mode
#7129
Labels
run
command loses double quotes from the arguments in Fork mode
#7129
steps
build.sbt
to enable fork mode and configure a project so that "arguments file" mode is enabled in the fork executor:src/main/scala/Main.scala
to echo out the args as is:On a terminal window, launch
sbt
and executerun
command with a double quotation marks in the argument:Same command produces different output when "arguments file" mode is force disabled:
problem
When sbt shell started without
-Dsbt.argsfile=0
option, incorrect arguments passed to the launched process. I.e., it prints{a:1}
instead of{"a":1}
ignoring (") characters in the string. In the arguments file mode, there's no apparent way escape double quotes in command line arguments passed to the launched process.expectation
Expected the above scenario to produce same output (printing
{"a":1}
) in both sbt shells launched viasbt
andsbt -Dsbt.argsfile=0
notes
The text was updated successfully, but these errors were encountered: