Skip to content

Commit

Permalink
Fixing IO.foreach rubyspec, set env variable $_ to nil
Browse files Browse the repository at this point in the history
  • Loading branch information
josedonizetti committed Apr 27, 2013
1 parent 26df243 commit 30fc726
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion spec/tags/1.9/ruby/core/io/foreach_tags.txt
@@ -1,3 +1,2 @@
fails:IO.foreach when the filename starts with | gets data from a fork when passed -
fails:IO.foreach sets $_ to nil
fails:IO.foreach when passed name, object when the object is a Fixnum uses the object as a limit if it is a Fixnum
1 change: 1 addition & 0 deletions src/org/jruby/RubyIO.java
Expand Up @@ -3444,6 +3444,7 @@ private static IRubyObject foreachInternal19(ThreadContext context, IRubyObject
}
} finally {
io.close();
runtime.getGlobalVariables().clear("$_");
}
}

Expand Down

0 comments on commit 30fc726

Please sign in to comment.