File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -418,13 +418,15 @@ function fetch_executable_internal(
418
418
// no main class detection here
419
419
$ buildscript .= "echo 'COMPARE_DIR= \$(dirname \"\$0 \")' >> run \n" ;
420
420
$ mainClass = basename ($ unescapedSource , '.java ' );
421
- $ buildscript .= "echo 'java -cp \"\$COMPARE_DIR \" $ mainClass \"\\\$@ \"' >> run \n" ;
421
+ // Note: since the $@ is within single quotes, we do not need to double escape it.
422
+ $ buildscript .= "echo 'java -cp \"\$COMPARE_DIR \" $ mainClass \"\$@ \"' >> run \n" ;
422
423
$ buildscript .= "chmod +x run \n" ;
423
424
break ;
424
425
case 'py ' :
425
426
$ buildscript .= "echo '#!/bin/sh' > run \n" ;
426
427
$ buildscript .= "echo 'COMPARE_DIR= \$(dirname \"\$0 \")' >> run \n" ;
427
- $ buildscript .= "echo 'python3 \$COMPARE_DIR/ $ source' \"\\\$@ \" >> run \n" ;
428
+ // Note: since the $@ is within single quotes, we do not need to double escape it.
429
+ $ buildscript .= "echo 'python3 \"\$COMPARE_DIR/ $ source \" \"\$@ \"' >> run \n" ;
428
430
$ buildscript .= "chmod +x run \n" ;
429
431
break ;
430
432
}
You can’t perform that action at this time.
0 commit comments