I'm breaking myself into Scala. I got "Hello, World" to echo on the terminal. WOOT!
Here's my new problem: Run rails new <app> by running it with scala. Improvement: It will cd into the <app> folder it will make and then run git init for you.
This is my problem and I want to make the bash script with Scala.
Here was my Hello World script (complete copy from scala lang):
#!/bin/sh
exec scala "$0" "$@"
!#
object HelloWorld extends App {
println("Hello, World")
}
HelloWorld.main(args)
Does anyone know how to do this? Or how I could at least run ls with the terminal?
Also, is there a way to handle errors with a bash script?