From: "mdube@... (Martin Dubé)" Date: 2012-11-17T07:19:05+09:00 Subject: [ruby-core:49459] [ruby-trunk - Bug #7374] File.expand_path resolving to first file/dir instead of absolute path Issue #7374 has been updated by mdube@arcane-technologies.com (Martin Dub��). luislavena (Luis Lavena) wrote: > Martin, > > Can you confirm if this happen with Ruby 2.0? (trunk, you can get automated builds from RubyInstaller CI) > > Shirosaki-san, > > Seems that globing has been enabled? Yes, same problem with r37691: C:\ruby-2.0.0-r37691-i386-mingw32\bin>irb.bat irb(main):001:0> File.expand_path("./*", "c:/") => "c:/$RECYCLE.BIN" irb(main):002:0> ---------------------------------------- Bug #7374: File.expand_path resolving to first file/dir instead of absolute path https://bugs.ruby-lang.org/issues/7374#change-32993 Author: mdube@arcane-technologies.com (Martin Dub��) Status: Assigned Priority: High Assignee: luislavena (Luis Lavena) Category: core Target version: 2.0.0 ruby -v: ruby 1.9.3p327 (2012-11-10) [i386-mingw32] =begin (({File.expand_path("./*", "c:)"})) will give "c:/$recycle.bin" as result instead of "c:/*" (({File.expand_path("./*", "c:/temp)"})) will give "c:/temp/." as result instead of "c:/temp/*" It looks like the first directory entry is returned instead of the absolute path. =end -- http://bugs.ruby-lang.org/