title: Execute command stored in variable in fish shell
body: <p>I would like to run the following command:</p>
  
  <pre><code>for i in git python gcc java pip
      $i --version                
  end                             
  </code></pre>
  
  <p>But fish tells me to use a function. I am not sure what the best way to do this is.</p>