File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,6 +114,16 @@ Each entry of `args` may be a string, or one of the object shapes that
114114other object shape, an unrecognized ` op ` , or a ` pattern ` /` comment `
115115containing line terminators throws a ` TypeError ` .
116116
117+ The output is POSIX shell (` sh ` /` bash ` ) quoting.
118+ It is not valid for Windows ` cmd.exe ` or PowerShell,
119+ whose rules differ and, for ` cmd.exe ` ,
120+ are not solvable in the general case. On Windows,
121+ do not build a shell command string from this output;
122+ instead pass an argument array to a non-shell API such as
123+ ` child_process.execFile ` or ` spawn `
124+ (or the ` cross-spawn ` package),
125+ which does no shell parsing and needs no quoting.
126+
117127## parse(cmd, env={})
118128
119129Return an array of arguments from the quoted string ` cmd ` .
You can’t perform that action at this time.
0 commit comments