Permalink
Browse files

Merge from ruby_1_8.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@16676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 4e63355 commit 76ea94de31625bd157b0149c89748ac69821c2a7 @knu knu committed May 28, 2008
Showing with 8 additions and 1 deletion.
  1. +8 −1 ext/purelib.rb
View
@@ -1,3 +1,10 @@
-if nul = $:.find_index {|path| /\A(?:\.\/)*-\z/ =~ path}
+nul = nil
+$:.each_with_index {|path, index|
+ if /\A(?:\.\/)*-\z/ =~ path
+ nul = index
+ break
+ end
+}
+if nul
$:[nul..-1] = ["."]
end

0 comments on commit 76ea94d

Please sign in to comment.