title: Escaping a literal asterisk as part of a command
body: <p>Sample bash script</p>
  
  <pre><code>QRY="select * from mysql"
  CMD="mysql -e \"$QRY\""
  `$CMD`
  </code></pre>
  
  <p>I get errors because the * is getting evaluated as a glob (enumerating) files in my CWD.</p>
  
  <p>I Have seen other posts that talk about quoting the "$CMD" reference for purposes of echo output, but in this case</p>
  
  <p><code>"$CMD"</code></p>
  
  <p>complains the whole literal string as a command.</p>
  
  <p>If I </p>
  
  <pre><code>echo "$CMD"
  </code></pre>
  
  <p>And then copy/paste it to the command line, things seems to work.</p>