Merge pull request #13599 from atom/dg-add-hash-to-quoted-command-escaping

Add # to chars that cause quote escaping for commands
This commit is contained in:
Damien Guard
2017-01-12 09:24:04 -08:00
committed by GitHub

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