Closed Nakilon closed 3 years ago
select does not work if ruby was called after a pipe
this works fine
ruby -r tty-prompt -e "TTY::Prompt.new.select "1", [2,3]"
this "hangs"
echo 123 | ruby -r tty-prompt -e "p gets; TTY::Prompt.new.select "1", [2,3]"
echo 123 | ruby -r tty-prompt -e "p gets; \$stdin = open '/dev/tty'; TTY::Prompt.new.select "1", [2,3]"
Describe the problem
select does not work if ruby was called after a pipe
Steps to reproduce the problem
this works fine
this "hangs"
Describe your environment