You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are concatenating the user provided arguments to the command_string, but POSIX shell -c flag allow extra arguments, one to set the $0 (process name) of the executed script from the command_string, and next ones to define the other positional arguments ($1, $2, $3...). It seems like a dumb change, but since we are just concatenating the strings to the real_args variable, $@ and $* are shown as empty, so for example it's not possible to use variables expansion with them like eslint ${@:-.} on package.json scripts to set current directory as default value if files argument are not provided when executing npm run.
The text was updated successfully, but these errors were encountered:
promise-spawn/lib/index.js
Lines 116 to 123 in 8e99175
We are concatenating the user provided arguments to the
command_string
, but POSIX shell-c
flag allow extra arguments, one to set the$0
(process name) of the executed script from thecommand_string
, and next ones to define the other positional arguments ($1
,$2
,$3
...). It seems like a dumb change, but since we are just concatenating the strings to thereal_args
variable,$@
and$*
are shown as empty, so for example it's not possible to use variables expansion with them likeeslint ${@:-.}
onpackage.json
scripts to set current directory as default value if files argument are not provided when executingnpm run
.The text was updated successfully, but these errors were encountered: