Skip to content

Commit fb7a498

Browse files
authored
docs: clarify shell used for script (#8351)
clarify which shell is used to run npm scripts and how to configure it Fixes: #4622
1 parent f2d6947 commit fb7a498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/lib/content/using-npm/scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ fine:
334334

335335
### Exiting
336336

337-
Scripts are run by passing the line as a script argument to `sh`.
337+
Scripts are run by passing the line as a script argument to `/bin/sh` on POSIX systems or `cmd.exe` on Windows. You can control which shell is used by setting the [`script-shell`](/using-npm/config#script-shell) configuration option.
338338

339339
If the script exits with a code other than 0, then this will abort the
340340
process.

0 commit comments

Comments
 (0)