mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Brackets inexplicably need to be quoted in the command bit (but not in args). Fixes #13346
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user