stephencelis / ghi

GitHub Issues on the command line. Use your $EDITOR, not your browser.
Other
2.14k stars 142 forks source link

stty: 'standard input': unable to perform all requested operations #369

Open ahmadassaf opened 6 years ago

ahmadassaf commented 6 years ago

Hello,

I am trying to use the script inside of another shell script that I have .. mainly I am doing the following:

read -p "⚙️  Configuring ghi ... What is your github username ? " GITHUB_USERNAME </dev/tty && ghi config --auth ${GITHUB_USERNAME}

I am prompted then in the shell:

⚙️  Configuring ghi ... What is your github username ? ahmadassaf
Enter ahmadassaf's GitHub password (never stored): stty: 'standard input': unable to perform all requested operations

I have seen a bunch of issues around this related to [stty](https://github.com/shurizzle/ruby-stty):

ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin17] GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin17.5.0)