We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
When stdin is a pipe, $stdin.tty? should return false. On JRuby-9.0.0.0-pre1 it returns true:
$stdin.tty?
[matijs@walnut] rbenv shell jruby-9.0.0.0-pre1 [matijs@walnut] echo '' | ruby -e 'p $stdin.tty?' true [matijs@walnut] rbenv shell 2.2.0 [matijs@walnut] echo '' | ruby -e 'p $stdin.tty?' false [matijs@walnut] rbenv shell jruby-1.7.18 [matijs@walnut] echo '' | ruby -e 'p $stdin.tty?' false
The text was updated successfully, but these errors were encountered:
We probably have some special-case logic to always make stdio report it is a tty.
Sorry, something went wrong.
4d05b2a
Thanks!
No branches or pull requests
When stdin is a pipe,
$stdin.tty?
should return false. On JRuby-9.0.0.0-pre1 it returns true:The text was updated successfully, but these errors were encountered: