How to quit scala 2.11.0 REPL?
I ran into the same issue on upgrade, just use colon q.
:q
Additionally, exit
was deprecated in 2.10.x with sys.exit
suggested instead, so this works as well:
sys.exit
As a side note, I think they did this so you can distinguish between exiting the scala console in sbt and exiting sbt itself, though I could be wrong.
You options to leave the REPL as stated in the answers before are:
:quit
:q
Ctrl + d // Unix
Ctrl + z // Windows
sys.exit
Use the end of file characters. Ctrl-D
on linux, Ctrl-Z
on Windows.
Using the :help
command on my 2.10.3 REPL gets me this hint:
:quit exit the interpreter
I don't know whether :quit
is still there in 2.11.0 or not though.