From: Vince D. <vi...@sa...> - 2002-09-05 11:18:29
|
On Wed, 4 Sep 2002, Paul Obermeier wrote: > Apropos changes in 8.4: > > The semantics of "glob" has changed on Windows. > > "glob *" used to return all entries of a directory (including hidden ones). > In 8.4 it returns only the non-hidden entries. This is true, also on macos. The old version of glob, in Tcl8.3 had numerous confusions between '.' and '-types hidden' which, in particular, disagreed with the semantics of glob on unix and with the semantics of glob on the native platform. As part of the vfs overhaul of the filesystem, these bugs were cleaned up so that there is a clear unambiguous platform-specific meaning to 'hidden' files. if the operating system things a file is 'hidden' then so does Tcl, and vice versa. I apologise that this wasn't pointed out explicitly as a potential backwards incompatibility. Vince. > > Example: > > (test) 17 % info patchlevel > 8.3.4 > (test) 18 % glob * > dir hiddendir hiddenfile.txt file.txt > > (test) 3 % info patchlevel > 8.4b1 > (test) 4 % glob * > dir file.txt > > If this change is intentional, it should be documented. > POTENTIAL INCOMPATIBILITY. > > Have not found something in files glob.n or Changes. > > Greetings, > > Paul > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Tcl-Core mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-core > |