1
0
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:
Kris Maglione
2008-12-08 07:46:31 -05:00
parent 9b16f7b4f7
commit 59db170df7

View File

@@ -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;