News for hackers. Stuff that matters.
Re:First steps with Scala, say goodbye to bash scripts… by alexatkeplar on Thursday January 12, 2012 @03:56AM (#3455598)
That's a one-line Bash wrapper to invoke Scala (line 2) with the original arguments sent to the Scala script, compiling the Scala code which follows below. You can read more at the bottom of the man page here: http://www.scala-lang.org/docu/files/tools/scala.html
Re:First steps with Scala, say goodbye to bash scripts… by slashclee on Thursday January 12, 2012 @04:22AM (#3455644)
I wonder why they don't use

#!/usr/bin/env scala

as the first line instead. If there's some hack to support #!/bin/sh in the scala interpreter... ew.

Re:First steps with Scala, say goodbye to bash scripts… by opensas on Friday January 13, 2012 @02:27AM (#3459567)
I tried it, and got:

sas@ubuntu:~/devel/apps/playdoces/documentation/1.2.4/manual/tmp$ ./status.scala error: script file does not close its header with !# or ::!# one error found

Re:First steps with Scala, say goodbye to bash scripts… by slashclee on Tuesday January 17, 2012 @05:16AM (#3474406)
If you do:

    #!/usr/bin/env scala
    !#
it appears to work.