-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not all versions of Linux have /bin/test #839
Milestone
Comments
3 tasks
Maybe using something like:
|
gnodet
added a commit
to gnodet/jline3
that referenced
this issue
Jul 31, 2023
Merged
gnodet
added a commit
that referenced
this issue
Aug 1, 2023
Merged
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
org.jline.terminal.impl.exec.ExecTerminalProvider
uses atest
program to detect if a stream is attached to a terminal:jline3/terminal/src/main/java/org/jline/terminal/impl/exec/ExecTerminalProvider.java
Line 122 in ccfb8c5
The
test
program appears to be hardcoded to/bin/test
:jline3/terminal/src/main/java/org/jline/utils/OSUtils.java
Line 95 in ccfb8c5
But, there appear to be some versions of Linux that use
/usr/bin/test
rather than/bin/test
, which then leads to misdetection of the terminal streams as non-terminal, and then JLine won't switch to raw mode, and input does not work properly.Inside OpenJDK, this lead to:
openjdk/jdk@fab2357
The text was updated successfully, but these errors were encountered: