Non-interactive flag?
Roy van Rijn
roy.van.rijn at gmail.com
Tue Nov 3 14:58:37 UTC 2015
I've started using JShell now, not just as a REPL, but as method for
easy scripting. Using the 'new' Files API it is very easy to write
scripts that manipulate files for example in the Java language we all
know and love.
The only 'problem' I've encountered is the following, I'd like to call
JShell with an input file and don't want it end up in the REPL with a
prompt. The only way to prevent this is to end the 'script' with
'/exit'.
IMHO it would be nice to have a command line option to just run a
script and don't go into REPL/prompt mode afterwards?
p.s. Congratulations to everyone, JShell is now available to everyone
in the latest JDK 9 build (b90)
More information about the kulla-dev
mailing list