From: nobu@... Date: 2014-05-16T16:49:38+00:00 Subject: [ruby-core:62627] [ruby-trunk - Bug #9648] [Closed] Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows Issue #9648 has been updated by Nobuyoshi Nakada. Status changed from Assigned to Closed % Done changed from 0 to 100 Applied in changeset r45965. ---------- dir.c: match plain names as-is * dir.c (glob_pattern_type): separate names with alphabet but no magical from plain. * dir.c (glob_helper): match plain names as-is to treat super-root same as the root. [ruby-core:61552] [Bug #9648] ---------------------------------------- Bug #9648: Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows https://bugs.ruby-lang.org/issues/9648#change-46764 * Author: Hiroshi Shirosaki * Status: Closed * Priority: Normal * Assignee: Nobuyoshi Nakada * Category: * Target version: * ruby -v: ruby 2.2.0dev (2014-03-17 trunk 45356) [x64-mingw32] * Backport: 2.0.0: DONTNEED, 2.1: DONTNEED ---------------------------------------- `Dir.glob('../*')` shows unexpected result if current directory is a symbolic linked directory on Windows. This issue seems to be introduced by r44802. The following is a test case. ~~~ C:\foo>mklink /D bar V:\ symbolic link created for bar <<===>> V:\ C:\foo>cd bar C:\foo\bar>ruby -ve "p Dir.glob('../*')" ruby 1.9.3p392 (2013-02-22) [i386-mingw32] ["../a", "../bar"] C:\foo\bar>\rubyinstaller\sandbox\ruby21_build\miniruby.exe -ve "p Dir.glob('../*')" ruby 2.2.0dev (2014-02-04 trunk 45356) [x64-mingw32] [] C:\foo\bar>dir .. Volume in drive C is OS Volume Serial Number is 6629-B36B Directory of C:\foo 2014/03/17 18:58