From: "mame (Yusuke Endoh)" Date: 2012-05-03T12:50:01+09:00 Subject: [ruby-core:44831] [ruby-trunk - Bug #6378][Assigned] irb incorrectly considers line incomplete when parenthesis are excluded Issue #6378 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned Assignee set to keiju (Keiju Ishitsuka) Thanks, assigning it to keiju who is a developer/maintainer of irb. -- Yusuke Endoh ---------------------------------------- Bug #6378: irb incorrectly considers line incomplete when parenthesis are excluded https://bugs.ruby-lang.org/issues/6378#change-26406 Author: devans (Daniel Evans) Status: Assigned Priority: Normal Assignee: keiju (Keiju Ishitsuka) Category: Target version: ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.2.0] Steps to reproduce: start irb attempt to execute the following line: [1,2,3].reduce :+ Expected: a result of `=> 6` should be printed and a new line should be available Actual: The result is not printed and the shell indicates more lines are expected irb(main):001:0> [1,2,3].reduce :+ irb(main):002:0* Workaround: add parenthesis to the method call: [1,2,3].reduce(:+) Notes: The line is executed, as evidenced by changing the symbol to represent a message to which FixNum does not respond, such as :_ after which the error message will be printed immediately. This is also reproducible in ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux] irb versions tested: irb 0.9.6(09/06/30) irb 0.9.5(05/04/13) -- http://bugs.ruby-lang.org/