v2.9.2 只是挂起。这是我要提供的文件-i
:
println("I work")
这是输出。首先从 v2.9.0 开始:
$ ~/opt/scala-2.9.0.final/bin/scala -i /tmp/t.scala
Loading /tmp/t.scala...
I work
Welcome to Scala version 2.9.0.final (OpenJDK 64-Bit Server VM, Java 1.7.0_03).
Type in expressions to have them evaluated.
Type :help for more information.
scala> :q
$
接下来,从 v2.9.2 开始:
$ ~/opt/scala-2.9.2/bin/scala -i /tmp/t.scala
Loading /tmp/t.scala...
^c
$
(我必须 Ctrl-c 它,因为它只是挂在那里。)
难道我做错了什么?