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