ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:50887] [Ruby master Bug#16424] abort without arguments does not print error info
       [not found] <redmine.issue-16424.20191215061706@ruby-lang.org>
@ 2019-12-15  6:17 ` zn
  0 siblings, 0 replies; only message in thread
From: zn @ 2019-12-15  6:17 UTC (permalink / raw)
  To: ruby-dev

Issue #16424 has been reported by znz (Kazuhiro NISHIYAMA).

----------------------------------------
Bug #16424: abort without arguments does not print error info
https://bugs.ruby-lang.org/issues/16424

* Author: znz (Kazuhiro NISHIYAMA)
* Status: Assigned
* Priority: Normal
* Assignee: ko1 (Koichi Sasada)
* Target version: 
* ruby -v: 
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
https://docs.ruby-lang.org/ja/2.0.0/method/Kernel/m/abort.html
には「引数を省略した呼び出し時に $! が nil でなければその例外の メッセージを標準エラー出力 $stderr に出力」されるとありますが、 1.9 から出力されなくなっているようです。

```
% docker run -it --rm rubylang/all-ruby env ALL_RUBY_SINCE=ruby-1.6 ./all-ruby -e 'begin;raise "foo";rescue;abort;end'
ruby-1.6.0            -e:1: foo (RuntimeError)
                  exit 1
...
ruby-1.8.7-p374       -e:1: foo (RuntimeError)
                  exit 1
ruby-1.9.0-0          exit 1
...
ruby-2.7.0-preview3   exit 1
```

笹田さんに直接確認してみたところ、バグということだったので、チケットとして登録しておきます。



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-15  6:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-16424.20191215061706@ruby-lang.org>
2019-12-15  6:17 ` [ruby-dev:50887] [Ruby master Bug#16424] abort without arguments does not print error info zn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).