Overview
| Artifact ID: | 99edce3f8333656cef8a580938a2453250745c69 |
|---|---|
| Ticket: | 879555ffffffffffffffffffffffffffffffffff
unix glob has inconsistent behavior |
| User & Date: | vincentdarley on 2004-01-19 18:18:46 |
Changes
- icomment:
Logged In: YES user_id=32170 All of these work for me on Windows: % pwd C:/Documents and Settings/VinceD (VinceD) 2 % glob * .eclipse-platform .tkchatrc Alpha-v8 {Bluetooth Software} Cookies Desktop Favorites gsview32.ini {My Documents} PUTTY.RND {Start Menu} tmp UserData WINDOWS (VinceD) 3 % glob .tkchatrc .tkchatrc (VinceD) 4 % glob ./.tkchatrc ./.tkchatrc (VinceD) 5 % glob [pwd]/.tkchatrc {C:/Documents and Settings/VinceD/.tkchatrc} (VinceD) 6 % glob ../VinceD/.tkchatrc ../VinceD/.tkchatrc (VinceD) 7 % So it must be something in the unix-specific code. Note that the code path used here will be 'pattern == NULL' path, I think. This means the bug (or at least some very good information about the bug) should be in these few lines: if (pattern == NULL || (*pattern == '\0')) { /* Match a file directly */ native = (CONST char*) Tcl_FSGetNativePath(pathPtr); if (NativeMatchType(native, types)) { Tcl_ListObjAppendElement(interp, resultPtr, pathPtr); } Tcl_DecrRefCount(fileNamePtr); return TCL_OK; in tclUnixFile.c/TclpMatchInDirectory. Since I'm not on unix, can I ask you to debug what is going on there? In particular, what is 'native' in these cases? - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"