mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 00:07:58 +01:00
Split shcf on \s
This commit is contained in:
@@ -729,7 +729,7 @@ lookup:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
let cmd = [options["shell"], options["shellcmdflag"], command].map(escape).join(" ");
|
let cmd = util.Array.flatten([options["shell"], options["shellcmdflag"].split(/\s+/), command]).map(escape).join(" ");
|
||||||
command = "cd " + escape(cwd.path) + " && exec " + cmd + " >" + escape(stdoutFile.path) + " 2>" + escape(stderrFile.path);
|
command = "cd " + escape(cwd.path) + " && exec " + cmd + " >" + escape(stdoutFile.path) + " 2>" + escape(stderrFile.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -742,7 +742,7 @@ lookup:
|
|||||||
command += " <" + escape(stdinFile.path);
|
command += " <" + escape(stdinFile.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
let res = ioManager.run(options["shell"], [options["shellcmdflag"], command], true);
|
let res = ioManager.run(options["shell"], options["shellcmdflag"].split(/\s+/).concat(command), true);
|
||||||
|
|
||||||
if (res > 0)
|
if (res > 0)
|
||||||
var output = ioManager.readFile(stderrFile) + "\nshell returned " + res;
|
var output = ioManager.readFile(stderrFile) + "\nshell returned " + res;
|
||||||
|
|||||||
Reference in New Issue
Block a user