Issue Type: Bug Bug
Affects Versions: JRuby 1.7.2
Assignee: Unassigned
Components: Interpreter
Created: 13/Mar/13 5:23 PM
Description:
echo foo > foo ; ruby -i -pe 'gsub(/foo/,"bar")' foo ; cat foo

Output: bar

Same behavior is seen on MRI 1.8.7 and 1.9.2 and JRuby 1.7.2 in when using --1.8 flag

When using default or explicitly using --1.9 flat, this error message below is emitted and the file is emptied:

NoMethodError: undefined method `gsub' for main:Object
(root) at -e:1

Project: JRuby
Priority: Major Major
Reporter: Jason Lunn
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