3 ms·
I don't get how the bash scripts are not used. It's still used at #!/bin/sh exec scala "$0" "$@"
by ww520 15y ago
I don't get how the bash scripts are not used. It's still used at
#!/bin/sh
exec scala "$0" "$@"
- switch007 15y ago/bin/sh is probably a symlink to something other than bash though. It's not using any features/functions of the shell other than to execute scala. It's a stretch calling that a script.
- alexatkeplar 15y agoThat'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 http://www.scala-lang.org/docu/files/tools/scala.html
- slashclee 15y agoI 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.