[#104004] [Ruby master Feature#17883] Load bundler/setup earlier to make `bundle exec ruby -r` respect Gemfile — mame@...
Issue #17883 has been reported by mame (Yusuke Endoh).
21 messages
2021/05/24
[ruby-core:103811] [Ruby master Feature#17859] Start IRB when running just `ruby`
From:
duerst@...
Date:
2021-05-13 00:20:57 UTC
List:
ruby-core #103811
Issue #17859 has been updated by duerst (Martin Dst).
I agree it's convenient, would be really great to have it. I was thinking about proposing it, too.
@jaruga: People definitely shouldn't run unknown commands, but Ruby isn't an unknown command, it's a friendly programming language :-). And adding this will make Ruby more friendly. Usually, Python is more obnoxious ("Use exit() or Ctrl-D (i.e. EOF) to exit" when typing "exit" being the most famous example), and we should make sure we keep it that way.
@chrisseaton: A message like this would be a good idea, but it could be made a lot shorter, e.g. "Starting IRB; use 'ruby -' to read from standard input".
@jeremyevans0: My guess is you are in a (quite small) minority. It takes a very steady hand to input code that way (or copy-paste). Pasting code into irb may also work, as will using "ruby -", which is just two more keystrokes away.
----------------------------------------
Feature #17859: Start IRB when running just `ruby`
https://bugs.ruby-lang.org/issues/17859#change-91926
* Author: deivid (David Rodr刕uez)
* 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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>