Joining bash arguments as string

https://unix.stackexchange.com/questions/197792/joining-bash-arguments-into-single-string-with-spaces

for some reason he added single quotes, I removed them
npm.w i @werm-fw/cloud @werm-fw/set-up

arg $1 is suppose to be “@werm-fw/cloud” and $2 “@werm-fw/set-up”

but after I want to pass both args as a single string

set -- --packages "$@";

you would think that if i do this im good, but actually I have to do execute the code below for it to work

set -- --packages "$*";

Leave a Reply

Your email address will not be published.