Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix documentation concerning glob expansion on UNIX #4869

Merged
merged 4 commits into from
Mar 12, 2024
Merged
Changes from 1 commit
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
9 changes: 6 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2332,9 +2332,12 @@ $ mocha "./spec/**/*.js"
```

[You should _always_ quote your globs in npm scripts][article-globbing]. If you
use double quotes, it's the shell on UNIX that will expand the glob. On the
other hand, if you use single quotes, the [`node-glob`][npm-glob] module will
handle its expansion.
use double quotes or single quotes, the [`node-glob`][npm-glob] module will
handle its expansion. Single quotes are not supported on Windows, so you should
avoid them. Note that UNIX shells will perform
binki marked this conversation as resolved.
Show resolved Hide resolved
[parameter expansion](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02_03)
binki marked this conversation as resolved.
Show resolved Hide resolved
within double quotes, so avoid using a dollar sign or backslash in any of your
paths if you want to support UNIX.

See this [tutorial][gist-globbing-tutorial] on using globs.

Expand Down
Loading