Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ When `options.shell` is used, all of `cross-spawn`'s enhancements are disabled.

This mimics the Node.js behavior. More specifically, the command and its arguments will not be automatically escaped nor shebang support will be offered. This is by design because if you are using `options.shell` you are probably targeting a specific platform anyway and you don't want things to get into your way.

Since the arguments are passed to Node's `spawn` as is, Node.js 24 and later print a [DEP0190](https://nodejs.org/api/deprecations.html#DEP0190) deprecation warning when arguments are used together with `options.shell`, because they are only joined with spaces, not escaped.

On Windows, shell built-ins such as `dir` or `echo` aren't programs, so, like with Node's `spawn`, they need `shell: true`.

### Windows argument escaping
Expand Down