Skip to content
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

ksh remains in "noecho" mode forever #672

Open
vmihalko opened this issue Aug 17, 2023 · 4 comments
Open

ksh remains in "noecho" mode forever #672

vmihalko opened this issue Aug 17, 2023 · 4 comments
Labels
bug Something is not working

Comments

@vmihalko
Copy link

Detailed description of the problem:

https://bugzilla.redhat.com/show_bug.cgi?id=2185030

KSH version:

ksh 93u+m/1.0.6 (latest)

Reproducer

$ ksh
$ sudo -u root echo hello|head -1
hello
    $

What happens

After running the above command, the prompt, which is also not correctly printed (it should be at the beginning of the line), typing keys show nothing because the terminal remains in "noecho" mode forever.

@McDutchie McDutchie added the bug Something is not working label Sep 10, 2023
@McDutchie
Copy link

I am unable to reproduce this on CentOS 7.9.2009 x86_64. (I have no access to RHEL for testing.)

Are you sure this bug exists in 93u+m/1.0.6? The Red Hat bug report you linked to refers to 93u+ 2012-08-01 (ksh-20120801-257.el8) and has no indication that 93u+m was tested.

@McDutchie McDutchie added question Further information is requested and removed bug Something is not working labels Sep 14, 2023
@tvalenta
Copy link

I can't reproduce it on macOS M1 either.

@vmihalko
Copy link
Author

Sorry for providing an incomplete reproducer. I realized that I forgot to include one specific step:

  1. Add "Defaults use_pty" in /etc/sudoers
  2. Execute the above command (from the first comment: ksh remains in "noecho" mode forever #672 (comment))

I can reproduce it with ksh 93u+m/1.0.6 (latest) on fedora-38.

@McDutchie McDutchie added bug Something is not working and removed question Further information is requested labels Dec 28, 2023
@McDutchie
Copy link

Reproduced on Debian 11 on amd64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

3 participants