Project

General

Profile

Backport #4118

ruby -x で実行すると行がずれる

Added by metanest (Makoto Kishimoto) over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
[ruby-dev:42680]

Description

=begin
以下のように、

$ cat -n hoge.rb
1 #!/bin/sh
2 exec ruby19 -x "$0" "$@"
3 #!ruby
4 raise
$ ruby19 hoge.rb
hoge.rb:4:in <main>': unhandled exception
$ ./hoge.rb
./hoge.rb:5:in
': unhandled exception

-x オプションを使って実行すると、エラーメッセージで表示される行が1行大きいものになります。
ruby 1.8 では発生しません。
=end

History

#1

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r30084.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

#2

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Category set to core
  • Status changed from Closed to Assigned
  • Assignee set to yugui (Yuki Sonoda)

=begin

=end

#3

Updated by yugui (Yuki Sonoda) over 8 years ago

  • Status changed from Assigned to Closed

=begin
This issue was solved with changeset r30309.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF