mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add # to chars that cause quote escaping for commands
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user