title: How to build bash command from variable?
body: <p>I have a bash variable:</p>
  
  <pre><code>A="test; ls"
  </code></pre>
  
  <p>I want to use it as part of a call:</p>
  
  <pre><code>echo $A
  </code></pre>
  
  <p>I'm expecting it to be expanded into:</p>
  
  <pre><code>echo test; ls
  </code></pre>
  
  <p>However, it is expanded:</p>
  
  <pre><code>echo "test;" "ls"
  </code></pre>
  
  <p>How is it possible to achieve what I want? The only solution I can think of is this:</p>
  
  <pre><code>bash -c "echo $A"
  </code></pre>
  
  <p>Maybe there is something more elegant?</p>