Issue #3185 has been updated by ujihisa ..


I'm not sure which is desirable behavior; eliminating repeated slashes or preserving them, but I wrote the patch.

$ ruby192 -ve 'p File.expand_path("//////some/dir")'
ruby 1.9.2dev (2010-04-27 trunk 27505) [i386-darwin9.8.0]
"/some/dir"
$ ruby192 -ve 'p File.expand_path("//////some/dir", "/Foo")'
ruby 1.9.2dev (2010-04-27 trunk 27505) [i386-darwin9.8.0]
"/some/dir"

Also, this patch passes `make test` and the corresponding RubySpec.

$ mspec -t ruby192 core/file/expand_path_spec.rb
uby 1.9.2dev (2010-04-27 trunk 27505) [i386-darwin9.8.0]
................

Finished in 0.016287 seconds

1 file, 16 examples, 45 expectations, 0 failures, 0 errors
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3185

----------------------------------------
http://redmine.ruby-lang.org