repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git]
/
ext
/
purelib.rb
blob
dbe514c34ab232a0e549e74c78f0a656b3f9527e
1
nul = nil
2
$:.each_with_index {|path, index|
3
if /\A(?:\.\/)*-\z/ =~ path
4
nul = index
5
break
6
end
7
}
8
if nul
9
$:[nul..-1] = ["."]
10
end