Brackets inexplicably need to be quoted in the command bit (but not in args). Fixes #13346

This commit is contained in:
Damien Guard
2016-12-31 14:32:10 -08:00
parent 1b8fc0ee60
commit 5325490a35

View File

@@ -79,7 +79,7 @@ export default class BufferedProcess {
}
// The command itself is quoted if it contains spaces, &, ^ or | chars
cmdArgs.unshift(/\s|&|\^|\|/.test(command) ? `\"${command}\"` : command)
cmdArgs.unshift(/\s|&|\^|\(|\)|\|/.test(command) ? `\"${command}\"` : command)
const cmdOptions = _.clone(options)
cmdOptions.windowsVerbatimArguments = true