Skip to content
Tcl Source Code History Of Ticket 219258
Login

History Of Ticket 219258

Artifacts Associated With Ticket 219258

  1. Ticket change [7d81e77b75] (rid 97252) by nobody on 2000-10-26 05:04:16:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 6101 Bug
      Version: 8.4a1
      SubmitDate: '2000-08-09'
      LastModified: '2000-09-05'
      Severity: LOW
      Status: Assigned
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Windows NT
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      Michal Prussak
      
      Comments:
      Not really a big deal, but I thouht you should know.
      
      ReproducibleScript:
      Create files with names "*" and "[" (OK, * is perhaps bad, because NT applications can't access a file
      with a * in the name anyway)
      
      % glob {\*}
      <gives listing of root directory>
      % glob {\[}
      no files matched glob pattern "\["
      
      ObservedBehavior:
      Files * and [ have not been matched
      
      DesiredBehavior:
      Files * and [ should have been matched, just like on Unix:
      
      % glob {\[}
      {[}
      % glob {\*}
      *
      
      
      
      Verified this on 8.3.2 for Windows. 
      -- 09/05/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.4a1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "Glob doesn't deal properly with * and ["
    11. type initialized to: "Bug"
  2. Ticket change [6cb964e672] (rid 128567) by dkf on 2000-11-24 21:26:33:

    1. icomment:
      Probably a fault in the Windows implementation of TclpMatchFilesTypes()
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. subsystem changed to: "90. FAQs"
    5. username: "dkf"
  3. Ticket change [4a8718e842] (rid 126548) by dkf on 2001-02-07 23:00:04:

    1. subsystem changed to: "36. Pathname Management"
  4. Ticket change [c2832afd33] (rid 111497) by andreas_kupries on 2001-08-24 05:01:30:

    1. assignee changed to: "vincentdarley"
  5. Ticket change [cdef202501] (rid 95972) by vincentdarley on 2001-08-24 22:16:52:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      This is, I believe, nothing to do with 
      TclpMatchFilesTypes.  Since we are matching a literal 
      string here, 'glob' falls through to the end of TclDoGlob 
      which simply checks for existence of the file, using 
      Tcl_FSAccess (or since the patch was checked in yesterday) 
      Tcl_FSLStat.  However, looking at the implementation of 
      stat on WinTcl, I see this:
      
          /*
           * Eliminate file names containing wildcard characters, 
      or subsequent 
           * call to FindFirstFile() will expand them, matching 
      some other file.
           */
      
          transPtr = Tcl_FSGetTranslatedPath(NULL, pathPtr);
          if (transPtr == NULL || (strpbrk(Tcl_GetString
      (transPtr), "?*") != NULL)) {
      Tcl_SetErrno(ENOENT);
      return -1;
          }
      
      i.e. we purposefully disallow ourselves from statting any 
      file with '*' or '?' in the name.  Since this bug is 
      reported against older versions of Tcl, it seems as 
      if 'access' has the same limitation (although it doesn't 
      seem to be explicitly coded in Tcl's core).  I assume this 
      is therefore a limitation of the Win32 api's we use, and 
      therefore cannot be fixed (at least without changing those 
      api's).
      
      I'm therefore assigning this to Jeff, since he seems to 
      know something about the 'real Win32' stuff (and I don't)
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  6. Ticket change [33307f2fed] (rid 106541) by nobody on 2001-09-18 21:25:34:

    1. icomment:
      Logged In: NO 
      
      Note: this is related to the 'speed up stat 100x on 
      Windows' patch # 403001, in that if we apply a version of 
      that patch, then we no longer need to eliminate file names 
      contain wildcards, and this bug will go away.
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  7. Ticket change [53e8001f3d] (rid 93839) by vincentdarley on 2001-09-20 21:15:59:

    1. icomment:
      
      
      File Added - 11013: winStat.patch
      
      Logged In: YES 
      user_id=32170
      
      I don't know how to create a file called '*' on Win2000 
      (using Tcl or not) so I can't test the first part of the 
      bug, but I can make '[' work with the patch attached.  This 
      is basically the 'patch to speedup stat 100x' (although the 
      speed up seems smaller).  It seems to pass all tests on 
      Win2000, but should be tested on Win9x to make sure I've 
      got the 'A' as well as 'W' APIs correct.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  8. Add attachment "winStat.patch" [8da6f29627] (rid 127972) by vincentdarley on 2001-09-20 21:15:59.

  9. Ticket change [6e81ee1d00] (rid 100154) by vincentdarley on 2001-10-29 22:03:07:

    1. assignee changed to: "vincentdarley"
    2. closedate changed to: "2001-10-29T15:03:07"
    3. closer changed to: "vincentdarley"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"