title: Single quotes inside a double-quoted string in bash not honored
body: <p>I am trying to assign a variable in bash:</p>
  
  <pre><code>assignssid="airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}'"
  </code></pre>
  
  <p>When I currently do this, and then run <code>echo "$assignssid"</code>, the result is something like the following:</p>
  
  <pre><code>airport -I | awk '/ SSID/ {print substr(-bash, index(-bash, ))}'
  </code></pre>
  
  <p>How do I get the variable to work with the code inside the quotes?</p>