Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3b27e8d2828f012dc9001810da7f95eec469e003
Ticket: 879555ffffffffffffffffffffffffffffffffff
unix glob has inconsistent behavior
User & Date: vincentdarley on 2004-01-22 17:44:18
Changes

  1. icomment:
    Logged In: YES 
    user_id=32170
    
    I believe the fix is to insert 'oldDirSep = dirSep' as follows:
    
      again:
        if (IsSeparatorOrNull(dirSep[2])) {
    /* Need to skip '.' in the path */
    if (retVal == NULL) {
        CONST char *path = Tcl_GetString(pathPtr);
        retVal = Tcl_NewStringObj(path, dirSep - path);
        Tcl_IncrRefCount(retVal);
    }
    dirSep += 2;
    oldDirSep = dirSep;
    if (dirSep[0] != 0 && dirSep[1] == '.') {
        goto again;
    }
    continue;
        }
    
    thanks for tracking this down, and please do test the above....
    
    
    
  2. login: "vincentdarley"
  3. mimetype: "text/plain"
  4. username: "vincentdarley"