Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.pre1
Assignee: Thomas E Enebo
Created: 05/Aug/12 10:28 AM
Description:

IO.read fails to read piped commands. It works fine in JRuby 1.6.7.2 and MRI, but is broken in 1.7.0-preview1 and the latest preview2 snapshot.

Expected (JRuby 1.6.7.2):

irb(main):001:0> IO.read("|echo hi")
=> "hi\n"

Actual (jruby 1.7.0.preview2.dev (1.9.3p203) 2012-08-02 4cdee37 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_05-b05 [linux-amd64]):

irb(main):001:0> IO.read("|echo hi")
TypeError: can't convert Hash into String
	from org/jruby/RubyKernel.java:325:in `open'
	from org/jruby/RubyIO.java:3615:in `read'
	from org/jruby/RubyIO.java:3712:in `read'
	from (irb):1:in `evaluate'
Project: JRuby
Priority: Major Major
Reporter: Kevin Menard
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to