-
Enhancement
-
Resolution: Fixed
-
P3
-
9, 10
-
b31
The following shell command should produce a single line of output:
$ (echo '1+1'; echo 'System.out.println("ans = "+$1)') | jshell -s | cat
Instead it prints additional prompts and duplicates of the input snippets.
That's not really a true "silent mode", in the sense of "make -s", "read -s", etc.
This is surprising enough to be a bug. It also prevents jshell from being used (like other shells) in pipelines, networking scripts, etc.
$ (echo '1+1'; echo 'System.out.println("ans = "+$1)') | jshell -s | cat
Instead it prints additional prompts and duplicates of the input snippets.
That's not really a true "silent mode", in the sense of "make -s", "read -s", etc.
This is surprising enough to be a bug. It also prevents jshell from being used (like other shells) in pipelines, networking scripts, etc.
- csr for
-
JDK-8187439 jshell tool: not suitable for pipeline use
-
- Closed
-
- relates to
-
JDK-8189593 jshell tool doc: not suitable for pipeline use
-
- Resolved
-
-
JDK-8186708 jshell tool: bad load file garbles message and does not abort
-
- Resolved
-