title: Running multiple shell commands with wildcards
body: <p>Is there an <em>easy</em> way to do the following in Scala (or Java). I want to run command line commands from a Scala process, for example:</p>
  
  <pre><code> cd test &amp;&amp; javac *.java
  </code></pre>
  
  <p>as a dynamically generated shell script. The <code>javac *.java</code> should
  happen in the directory <code>test</code>. The usual simple</p>
  
  <pre><code> import scala.sys.process._
   ...
   "cd test &amp;&amp; javac *.java".!
  </code></pre>
  
  <p>or</p>
  
  <pre><code> "cd test &amp;&amp; javac *.java".!!
  </code></pre>
  
  <p>don't work, because Scala misinterpretes the <code>&amp;&amp;</code> and the wildcard <code>*</code>. I have no
  idea why. </p>