I am trying to run a program like this:
$CMD $ARGS
where $ ARGS is a set of arguments with spaces. However, zsh seems to pass the contents of $ ARGS as the only argument to the executable. Here is a concrete example:
$export ARGS="localhost -p22" $ssh $ARGS ssh: Could not resolve hostname localhost -p22: Name or service not known
Is there a bash or zsh flag that controls this behavior?
Please note that when I put this type of command in the $! / Bin / sh script, it executes as expected.
Thanks,
Setjmp
source share