mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge from ruby_1_8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d84188855
commit
0570e27b47
1 changed files with 8 additions and 1 deletions
|
@ -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] = ["."]
|
$:[nul..-1] = ["."]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue