Overview
| Artifact ID: | 9d9da249a179fabedf07df0bc4cb502d11d3d137 |
|---|---|
| Ticket: | 800106ffffffffffffffffffffffffffffffffff
Incorrect treatment of mounted file by glob. |
| User & Date: | andreas_kupries on 2003-09-04 06:16:28 |
Changes
- icomment:
Logged In: YES user_id=75003 After instrumenting the metakit fs in tclvfs a bit I get [andreask@pliers trans]$ ~/TDK/bin/tclsh % info patchlevel 8.4.4 % package require vfs::mk4 1.9 % vfs::mk4::Mount hackomatic.kit hackomatic.kit mk4vfs1 % file type hackomatic.kit %%mk%%|sta|mk4vfs1| sb(atime) = 0 sb(csize) = 0 sb(ctime) = 0 sb(gid) = 0 sb(ino) = mk4vfs1.dirs!0 sb(mode) = 0777 sb(mtime) = 0 sb(nlink) = 2 sb(size) = 0 sb(type) = directory sb(uid) = 0 sb(view) = mk4vfs1.dirs directory % glob -types d * 2print __attic__ as docbook splint tdk-specials teapot snit papers-ii papers tcl_2003 tcllib AnnArbor bp save-check % The %%... and sb(...) are output from the instrumentation. file type goes through the [stat] implementation of mkfs. glob otoh does not call into any of the mkfs functions. Because of this I conclude that this is a core issue where the glob command incorrectly determines the type of a path ... This means for me that I have to actually loop through all matches to find directories instead of relying on glob.
- login: "andreas_kupries"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "andreas_kupries"