Overview
| Artifact ID: | 4d667dfbe0be25c046084b575f91559ea83023f1 |
|---|---|
| Ticket: | 943995ffffffffffffffffffffffffffffffffff
glob inconsistency with VFS |
| User & Date: | dgp on 2006-05-12 03:05:55 |
Changes
- icomment:
Logged In: YES user_id=80530 Aha! Looking this over again, and the problem I have with 8.4.* is in TclDoGlob(). That routine is designed to be recursive, and passes two arguments, headPtr and tail down the recursive stack, each time holding a different partition of the pathname pattern we're globbing for. The problem is that as the stack of calls shifts more of the path from tail to head, it tries to do some normalization along the way. Turning //// runs into / and that sort of thing. Trouble with that is, when we have a virtual filesystem system in place, normalization isn't something you can do reliably as a local operations, it requires cooperation of all the Tcl_Filesystem drivers to be sure that the changes don't move a path out of one Tcl_Filesystem and into another one. In the reported example, the pattern trofs://1/modules/* gets transformed to trofs:/1/modules/* and this takes it out of the trofs filesystem and into the native filesystem, where the glob comes up empty. The fix is to revise TclDoGlob so that as it shifts things from tail to head, the only revisions it can make are those dictated by the special chars of glob patterns. Working on that patch now.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"