You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a Password prompt with my stdout redirected, I get the error "the input device is not a TTY".
For example, let's say I have a program that takes a password and outputs to standard out, and I'd like to redirect that to a file:
$ my-program > output.txt
I'd expect to see:
$ my-program > output.txt
? Password: *****
But instead I get an error about the input device.
I think the issue here is that the password prompt is written to stdout instead of stderr. I thought this was fixed a while ago in #89 but maybe it was for other prompts?
Happy to look into this and open a PR if needed.
The text was updated successfully, but these errors were encountered:
When using a
Password
prompt with mystdout
redirected, I get the error "the input device is not a TTY".For example, let's say I have a program that takes a password and outputs to standard out, and I'd like to redirect that to a file:
I'd expect to see:
But instead I get an error about the input device.
I think the issue here is that the password prompt is written to
stdout
instead ofstderr
. I thought this was fixed a while ago in #89 but maybe it was for other prompts?Happy to look into this and open a PR if needed.
The text was updated successfully, but these errors were encountered: