JDK-8304498 : JShell does not switch to raw mode when there is no /bin/test
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 21
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-03-20
  • Updated: 2023-06-25
  • Resolved: 2023-03-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 20 JDK 21
11.0.20-oracleFixed 17.0.8-oracleFixed 20.0.2Fixed 21 b16Fixed
Related Reports
Duplicate :  
Relates :  
Description
The internal JLine uses the 'test' executable to validate if given file descriptors are bound to terminal or not. It always uses `/bin/test`, which some (presumably newer) Linux distributions have, but some don't. The others only have '/usr/bin/test', and JLine fails to switch the terminal into raw mode, effectively disabling most of the editing features.
Comments
Fix request [11u,17u] This backport is included in the backport of 8297587: Upgrade JLine to 3.22.0 SAP nighlty testing passed
23-06-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1974 Date: 2023-06-21 13:39:37 +0000
21-06-2023

Fix request (20u) Clean backport. The fix was verified by the tests. All mach5 tests are green. Review 20u: https://git.openjdk.org/jdk20u/pull/56
20-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk20u/pull/56 Date: 2023-04-20 06:14:06 +0000
20-04-2023

Changeset: fab23577 Author: Jan Lahoda <jlahoda@openjdk.org> Date: 2023-03-28 16:56:28 +0000 URL: https://git.openjdk.org/jdk/commit/fab23577ab7fb88f90df638588e14da6bb620a3a
28-03-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13100 Date: 2023-03-20 12:10:04 +0000
20-03-2023