On Mon, 20 Mar 2023 12:10:04 GMT, Jan Lahoda <jlah...@openjdk.org> wrote:

> If JShell is run on a system that does not have `/bin/test` (which is, 
> apparently, possible for some systems, which only have `/usr/bin/test`), it 
> won't switch the terminal into the raw mode, and the input will not work 
> properly.
> 
> The proposed fix herein is to detect whether `test` existing in 
> `/usr/bin/test`, and if yes, use that location. Use the existing `/bin/test` 
> otherwise.

This pull request has now been integrated.

Changeset: fab23577
Author:    Jan Lahoda <jlah...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/fab23577ab7fb88f90df638588e14da6bb620a3a
Stats:     59 lines in 2 files changed: 58 ins; 0 del; 1 mod

8304498: JShell does not switch to raw mode when there is no /bin/test

Reviewed-by: coffeys, vromero

-------------

PR: https://git.openjdk.org/jdk/pull/13100

Reply via email to