title: How to force bash/zsh to evaluate parameter as multiple arguments when applied to a command
body: <p>I am trying to run a program like this:</p>
  
  <pre><code>$CMD $ARGS
  </code></pre>
  
  <p>where $ARGS is a set of arguments with spaces.  However, zsh appears to be handing off the contents of $ARGS as a single argument to the executable.  Here is a specific example:</p>
  
  <pre><code>$export ARGS="localhost -p22"
  $ssh $ARGS
  ssh: Could not resolve hostname localhost -p22: Name or service not known
  </code></pre>
  
  <p>Is there a bash or zsh flag that controls this behavior?  </p>
  
  <p>Note that when I put this type of command in a $!/bin/sh script, it performs as expected.</p>
  
  <p>Thanks,</p>
  
  <p>SetJmp</p>