News for hackers. Stuff that matters.
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.