Skip to content
Tcl Source Code History Of Ticket 1750300fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1750300fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1750300fffffffffffffffffffffffffffffffff

  1. Ticket change [530ad5a899] (rid 126415) by matzek on 2007-07-09 11:25:38:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hi *,
      
      consider the following examples:
      
      * there is a plain file TAGS in the current directory:
      
      % glob -- TAGS tags Tags
      TAGS
      % glob -types {} -- TAGS tags Tags
      TAGS tags Tags
      
      * there is _no_ file "urgent" in the current directory:
      
      % glob -types {} -- U*
      no files matched glob pattern "*U*"
      % glob -types {} -- URGENT Urgent
      URGENT Urgent
      
      Seems an empty types list together with queries without patterns just returns the queries...
      
      % set tcl_patchLevel 
      8.4.14
      
      Operating systems: Linux, AIX, HP-UX and Solaris
      
      kind regards
      -- Matthias Kraft
      
    4. foundin initialized to: "obsolete: 8.4.14"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "matzek"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "Unexpected [glob] result, when types list is empty"
    12. type initialized to: "Bug"
  2. Ticket change [172e79f15e] (rid 122445) by matzek on 2007-07-09 18:33:41:

    1. icomment:
      Logged In: YES 
      user_id=330806
      Originator: YES
      
      the second example: the query was *U* of cause.
      
      Got one line too less with CnP and then typed the missing line :-/ ...
      
      kind regards
      -- Matthias Kraft
      
      
    2. login: "matzek"
    3. mimetype: "text/plain"
    4. username: "matzek"
  3. Ticket change [ee273c6f11] (rid 104033) by dkf on 2007-07-24 01:06:43:

    1. priority changed to: "8"
  4. Ticket change [7b9ad97585] (rid 96936) by georgeps on 2007-12-15 04:54:53:

    1. icomment:
      Logged In: YES 
      user_id=585068
      Originator: NO
      
      Cool bug:
      % cd /  
      % glob -types {} -- TMP tmp
      TMP tmp
      % file exists TMP
      0
      % glob -- TMP tmp
      tmp
      
      Here's a patch that fixes it:
      Index: tclFileName.c
      ===================================================================
      RCS file: /cvsroot/tcl/tcl/generic/tclFileName.c,v
      retrieving revision 1.86
      diff -u -r1.86 tclFileName.c
      --- tclFileName.c       13 Dec 2007 15:23:17 -0000      1.86
      +++ tclFileName.c       14 Dec 2007 21:46:51 -0000
      @@ -1412,6 +1412,11 @@
               */
       
              Tcl_ListObjLength(interp, typePtr, &length);
      +
      +       if (length <= 0) {
      +            goto skipTypes;
      +       }       
      +
              globTypes = (Tcl_GlobTypeData*)
                      TclStackAlloc(interp,sizeof(Tcl_GlobTypeData));
              globTypes->type = 0;
      @@ -1529,6 +1534,7 @@
              }
           }
       
      +skipTypes:
           /*
            * Now we perform the actual glob below. This may involve joining together
            * the pattern arguments, dealing with particular file types etc. We use a
      
      
      
    2. login: "georgeps"
    3. mimetype: "text/plain"
    4. username: "georgeps"
  5. Ticket change [ae08e55481] (rid 101560) by matzek on 2008-07-01 23:00:42:

    1. assignee changed to: "dgp"
    2. foundin changed to: "obsolete: 8.5.3"
    3. icomment:
      Logged In: YES 
      user_id=330806
      Originator: YES
      
      This one still persists in 8.5.3 ... Maybe someone could fix it one way or another.
      
      Thanks
      -- Matthias Kraft
      
      
    4. login: "matzek"
    5. mimetype: "text/plain"
    6. username: "matzek"
  6. Ticket change [b1af39ae9f] (rid 98189) by dgp on 2008-08-14 01:15:21:

    1. closedate changed to: "2008-08-13T18:15:21"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      fix committed to all active branches.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  7. Ticket change [dabf0db05d] (rid 107848) by das on 2008-08-14 06:57:52:

    1. icomment:
      Logged In: YES 
      user_id=90580
      Originator: NO
      
      the tests added for this bug depend on the filesystem being case sensitive, which is not the case everywhere, e.g. not with HFS+ on Mac OS X, it does not seem necessary to test for the fix in this way
      
      ==== fileName-20.1 Bug 1750300 FAILED
      ==== Contents of test case:
      
          llength [glob -nocomplain -directory $d -- TAGS tags Tags]
      
      ---- Result was:
      3
      ---- Result should have been (exact matching):
      1
      ==== fileName-20.1 FAILED
      
      
      
      ==== fileName-20.2 Bug 1750300 FAILED
      ==== Contents of test case:
      
          llength [glob -nocomplain -directory $d -types {} -- TAGS tags Tags]
      
      ---- Result was:
      3
      ---- Result should have been (exact matching):
      1
      ==== fileName-20.2 FAILED
      
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. status changed to: "Open"
    6. username: "das"
  8. Ticket change [d443203719] (rid 123414) by dgp on 2008-08-14 11:10:12:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      You're right; I simply copied the
      test cases out of the bug report
      being too lazy to invent my own.
      
      I'll get these tests fixed tomorrow.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [3707271b9f] (rid 107204) by dgp on 2008-08-14 20:10:40:

    1. closedate changed to: "2008-08-14T13:10:40"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      more portable tests committed.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "dgp"