[BUG] Regression: no way to pass through extra arguments as they are #5004
Labels
Bug
thing that needs fixing
Priority 1
high priority issue
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
We have been passing a path-like regex string as the extra argument for the run script, and it worked for npm/yarn on all platforms. But lately, some of our npm users on windows started to report the regex has been incorrectly escaped. Seems like in npm 6.x these arguments are just pass-through, i.e. no manipulation by npm; but this seems to have changed since 7.x.
To demonstrate, here is a simple echo command to echo the arguments receive from npm:
Expected Behavior
Expect the npm 6.x behavior or something equivalent, so we can continue to pass through arguments.
There are a few similar issues like #3680, #4873 but wanted to make sure that we are not looking for solutions to "escape" it right, simply to just pass-through these arguments like it was in 6.x
Steps To Reproduce
see above
Environment
The text was updated successfully, but these errors were encountered: