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

Fix running interactive session in zsh or running fish considers /dev/pts/* as stdin #6

Open
Alex4386 opened this issue Sep 18, 2023 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@Alex4386
Copy link
Owner

How to reproduce

  1. Change shell to /bin/zsh
  2. Run sudo inside terminal
  3. sudo complains that password can not be entered via stdin.
@Alex4386 Alex4386 added the help wanted Extra attention is needed label Sep 18, 2023
@Alex4386 Alex4386 changed the title Fix running sudo in zsh considers /dev/pts/* as stdin Fix running sudo in zsh considers /dev/pts/* as stdin Sep 18, 2023
@Alex4386
Copy link
Owner Author

Alex4386 commented Oct 8, 2023

If I use bash and create zsh as subprocess, This doesn't reproduce and detects pseudo-console file properly. something seems off.

@Alex4386
Copy link
Owner Author

Alex4386 commented Dec 2, 2024

@halian created issue #10 for fish generating same issue it did on zsh:

If I set the shell binary to /usr/bin/fish, I get the following error instead of the shell in any new terminals:

warning: No TTY for interactive shell (tcgetpgrp failed)
setpgid: Inappropriate ioctl for device

@Alex4386 Alex4386 self-assigned this Dec 2, 2024
@Alex4386 Alex4386 changed the title Fix running sudo in zsh considers /dev/pts/* as stdin Fix running sudo in zsh or running fish considers /dev/pts/* as stdin Dec 2, 2024
@Alex4386 Alex4386 changed the title Fix running sudo in zsh or running fish considers /dev/pts/* as stdin Fix running interactive session in zsh or running fish considers /dev/pts/* as stdin Dec 2, 2024
@Alex4386
Copy link
Owner Author

Alex4386 commented Dec 6, 2024

Due to recent "events" in my region, Investigating this issue might be delayed. I'll be back ASAP. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant