From: jaruga@...
Date: 2021-05-13T11:25:15+00:00
Subject: [ruby-core:103835] [Ruby master Feature#17859] Start IRB when	running just `ruby`

Issue #17859 has been updated by jaruga (Jun Aruga).


@xtkoba Ah I can understand the concern for the debugging purpose. You might be used to being using `$ ruby` to copy & paste a ruby code and do Ctrl+D.

I had the following idea for your concern, chatting with people. That is to set an alias on your environment for the debugging purpose. It's like your wrapper script.

For example,

```
alias r='ruby -'
```

or

```
alias R='ruby -'
```

Then

```
$ r
p "abc"
Ctrl+D
"abc"
```

It's easy isn't it? But you need to be used to being the new command.


----------------------------------------
Feature #17859: Start IRB when running just `ruby`
https://bugs.ruby-lang.org/issues/17859#change-91953

* 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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>