From: eregontp@... Date: 2021-05-12T19:37:09+00:00 Subject: [ruby-core:103805] [Ruby master Feature#17859] Start IRB when running just `ruby` Issue #17859 has been updated by Eregon (Benoit Daloze). +1 from me, I think it's convenient and to some extent becoming expected for modern dynamic languages (JS, Python, R, Scala and more do it). TruffleRuby already does, and so did Rubinius. I think the warning is a nice way to document that one can use `ruby -` if they want the current behavior even when STDIN is a TTY. Personally I never use the current behavior of `$ ruby` when STDIN is a tty. I find `-e` to be much more practical for those cases, and if I need more space using a file feels like the right answer. I often do `xsel -b | ruby` though, but that would still work since STDIN is not a TTY (same for @jaruga's shell heredoc case). ---------------------------------------- Feature #17859: Start IRB when running just `ruby` https://bugs.ruby-lang.org/issues/17859#change-91920 * Author: deivid (David Rodr�guez) * Status: Open * Priority: Normal ---------------------------------------- Compare python: ``` $ python Python 3.8.3 (default, Jul 8 2020, 16:49:12) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> ``` To ruby: ``` $ ruby # just hangs ``` I think firing up a console it's a good default behaviour for beginners. -- https://bugs.ruby-lang.org/ Unsubscribe: