Skip to content

Commit 245d121

Browse files
authored
Update your-first-lines-of-scala.md (#1134)
See #1133 , Remove `HelloWorld.main(args)` and change script header.
1 parent a528248 commit 245d121

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

documentation/your-first-lines-of-scala.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ We may also run our example as a shell script or batch command (see the examples
8787

8888
The [bash](http://www.gnu.org/software/bash/) shell script `script.sh` containing the following Scala code (and shell preamble):
8989

90-
#!/usr/bin/env scala
90+
#!/bin/sh
91+
exec scala "$0" "$@"
92+
!#
9193

9294
object HelloWorld extends App {
9395
println("Hello, world!")
9496
}
95-
HelloWorld.main(args)
9697

9798
can be run directly from the command shell:
9899

0 commit comments

Comments
 (0)