Add # to chars that cause quote escaping for commands

This commit is contained in:
Damien Guard
2017-01-11 22:56:53 -08:00
parent 4104b40b4e
commit 8684bca708

View File

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