title: Problem with backticks in shellscript
body: <p>I am having a problem getting my shellscript working using backticks.  Here is an example version of the script I am having an issue with:</p>
  
  <pre><code>#!/bin/sh
  
  ECHO_TEXT="Echo this"
  ECHO_CMD="echo ${ECHO_TEXT} | awk -F' ' '{print \$1}'"
  
  result=`${ECHO_CMD}`;
  echo $result;
  
  result=`echo ${ECHO_TEXT} | awk -F' ' '{print \$1}'`;
  echo $result;
  </code></pre>
  
  <p>The output of this script is:</p>
  
  <pre><code>sh-3.2$ ./test.sh 
  Echo this | awk -F' ' '{print $1}'
  Echo
  </code></pre>
  
  <p>Why does the first backtick using a variable for the command not actually execute the full command but only returns the output of the first command along with the second command?  I am missing something in order to get the first backtick to execute the command?</p>