Project

General

Profile

Actions

Bug #7771

closed

method 'gets' crashed

Added by jjyr (Jinyang Jiang) almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
ruby 1.9.3p374 (2013-01-15 revision 38858) [i686-linux]
Backport:
[ruby-core:51806]

Description

method 'gets' crashed when pass arguments like "ruby test.rb hello"

example
#file test.rb only one method
gets
#end

type "ruby test.rb" and enter will work well
but "ruby test.rb hello" will crash
In my machine(ubuntu 32):

ruby test.rb hello
test.rb:1:in gets': No such file or directory - hello (Errno::ENOENT) from test.rb:1:in gets'
from test.rb:1:in `'

Actions

Also available in: Atom PDF

Like0
Like0Like0