How would I write the following bash script replacing the actual code of the scala section (after the !#) line to be called from a .scala file and then call its main method?
#!/bin/sh
exec scala "$0" "$@"
!#
object HelloWorld {
def main(args: Array[String]) {
println("Hello, world! " + args.toList)
}
}
HelloWorld.main(args)
keep in mind i do not have access to scalac