Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/5227#discussion_r27640700
--- Diff: launcher/src/main/java/org/apache/spark/launcher/Main.java ---
@@ -101,12 +101,9 @@ public static void main(String[] argsArray) throws
Exception {
* The method quotes all arguments so that spaces are handled as
expected. Quotes within arguments
* are "double quoted" (which is batch for escaping a quote). This page
has more details about
* quoting and other batch script fun stuff:
http://ss64.com/nt/syntax-esc.html
- *
- * The command is executed using "cmd /c" and formatted in single line,
since that's the
- * easiest way to consume this from a batch script (see
spark-class2.cmd).
*/
private static String prepareWindowsCommand(List<String> cmd,
Map<String, String> childEnv) {
- StringBuilder cmdline = new StringBuilder("cmd /c \"");
+ StringBuilder cmdline = new StringBuilder("");
--- End diff --
I assume you're sure about this, but we definitely don't always need `cmd
/c` to run a windows command directly from Java? In Linux you have to have
`bash` to interpret most of what we're used to typing on the command line.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]