Skip to content

Commit

Permalink
Brackets inexplicably need to be quoted in the command bit (but not i…
Browse files Browse the repository at this point in the history
…n args). Fixes atom#13346
  • Loading branch information
damieng committed Dec 31, 2016
1 parent 1b8fc0e commit 5325490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buffered-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5325490

Please sign in to comment.