title: bash/ksh/scripting eval subshell quotes
body: <p>I'm using ksh and having some trouble. Why does this code not run?</p>
  
  <pre><code>[root]$ CMD="ls -ltr"
  [root]$ eval "W=$( $CMD )"
  [root]$ ksh: ls -ltr:  not found.
  [root]$ echo $W 
  </code></pre>
  
  <p>But this works fine:</p>
  
  <pre><code>[root]$ CMD="ls -ltr"
  [root]$ eval 'W=$('$CMD')'
  [root]$ echo $W 
  </code></pre>