npx icon indicating copy to clipboard operation
npx copied to clipboard

Accept multiple arguments with -c ?

Open glenjamin opened this issue 7 years ago • 0 comments

I'm not entirely sure if this is a feature request or a bug. I had a look through the existing issues but didn't manage to spot anything discussing this before.

At the moment npm -c takes arguments like so:

  npx [options] -c '<command-string>'

This means that

npx -c echo 1

produces nothing and silently drops the "1" argument

Because the correct incantation is

npx -c "echo 1"

Could -c be expanded to take all of the arguments passed after it into a shell command?

glenjamin avatar May 12 '18 12:05 glenjamin