Skip to content
Tcl Source Code History Of Ticket 943995ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 943995ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 943995ffffffffffffffffffffffffffffffffff

  1. Ticket change [309bc4fc38] (rid 93286) by dgp on 2004-04-28 20:50:38:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Using a package that provides a virtual
      filesystem:
      
      % file volumes       
      trofs:// /
      % file isdirectory trofs://1/modules
      1
      % glob -directory trofs://1/modules *
      trofs://1/modules/base64-2.3.tm
      trofs://1/modules/cmdline-1.2.2.tm
      trofs://1/modules/msgcat-1.4.1.tm
      trofs://1/modules/struct-2.0.tm
      trofs://1/modules/http-2.4.4.tm
      trofs://1/modules/log-1.1.tm
      trofs://1/modules/htmlparse-1.0.tm
      trofs://1/modules/textutil-0.6.tm
      % glob trofs://1/modules/*
      no files matched glob pattern "trofs://1/modules/*"
      
      Something amiss in [glob] ?
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "glob inconsistency with VFS"
    11. type initialized to: "Bug"
  2. Ticket change [3f8b7740fd] (rid 121477) by vincentdarley on 2004-04-30 01:59:51:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Looks like a bug in glob, indeed.  Most likely following
      this comment in tclFileName.c:
      
          /* 
           * Handling empty path prefixes with glob patterns like
      'C:' or
           * 'c:////////' is a pain on Windows if we leave it too
      late, since
           * these aren't really patterns at all!  We therefore
      check the head
           * of the pattern now for such cases, if we don't have
      an unquoted
           * prefix yet.
           * 
           * Similarly on Unix with '/' at the head of the pattern
      -- it
           * just indicates the root volume, so we treat it as such.
           */
      
      Probably the code after that should check whether the
      pattern's head matches any of 'file volumes'?
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  3. Ticket change [e5d4467fd3] (rid 104194) by dgp on 2004-04-30 02:22:03:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Ah.  Does that mean if I choose
      a volume prefix that doesn't
      include // I can avoid the problem?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [4c4f07eeae] (rid 126867) by vincentdarley on 2004-04-30 05:13:03:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      I'm not sure that'll help.  I think the code I pointed to needs to be 
      fixed to ensure the volume name is shifted from the pattern to the 
      path, since otherwise I think the code (DoGlob) that is called will 
      do the wrong thing.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  5. Ticket change [337851231d] (rid 106600) by vincentdarley on 2004-04-30 19:18:31:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      That doesn't help.  Here are some new tests for
      fileSystem.test (one passes, two fail), which illustrate the
      problem.
      
      test filesystem-7.3.1 {glob in simplefs} \
        {testsimplefilesystem} {
          set dir [pwd]
          cd [tcltest::temporaryDirectory]
          file mkdir simpledir
          close [open [file join simpledir simplefile] w]
          testsimplefilesystem 1
          set res [glob -nocomplain simplefs:/simpledir/*]
          eval lappend res [glob -nocomplain simplefs:/simpledir]
          testsimplefilesystem 0
          file delete -force simpledir
          cd $dir
          set res
      } {simplefs:/simpledir/simplefile simplefs:/simpledir}
      
      test filesystem-7.3.2 {glob in simplefs} \
        {testsimplefilesystem} {
          set dir [pwd]
          cd [tcltest::temporaryDirectory]
          file mkdir simpledir
          close [open [file join simpledir simplefile] w]
          testsimplefilesystem 1
          set res [glob -nocomplain simplefs:/s*]
          testsimplefilesystem 0
          file delete -force simpledir
          cd $dir
          if {[llength $res] > 0} {
      set res "ok"
          } else {
              set res "no files found with 'glob -nocomplain
      simplefs:/s*'"
          }
      } {ok}
      
      test filesystem-7.3.3 {glob in simplefs} \
        {testsimplefilesystem} {
          set dir [pwd]
          cd [tcltest::temporaryDirectory]
          file mkdir simpledir
          close [open [file join simpledir simplefile] w]
          testsimplefilesystem 1
          set res [glob -nocomplain simplefs:/*]
          testsimplefilesystem 0
          file delete -force simpledir
          cd $dir
          if {[llength $res] > 0} {
      set res "ok"
          } else {
      set res "no files found with 'glob -nocomplain simplefs:/s*'"
          }
      } {ok}
      
      I'll be unable to look at this further for the next week, at
      least.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  6. Ticket change [500faf938c] (rid 125914) by vincentdarley on 2004-05-07 02:18:05:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Attached a patch to fix this bug.  Please test.
      
      (It includes new tests in Tcl test suite, but I obviously
      can't test your 'trofs').
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  7. Ticket change [0892d295d5] (rid 89588) by vincentdarley on 2004-05-07 02:18:06:

    1. icomment:
      
      
      File Added - 86315: vfsGlobVol.patch
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  8. Add attachment "vfsGlobVol.patch" [f0410c5831] (rid 109155) by vincentdarley on 2004-05-07 02:18:06.

  9. Ticket change [7a2146c30e] (rid 90252) by dgp on 2004-05-07 05:39:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Yes, that appears to correct the problem, thanks.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [1a9e593ca6] (rid 123009) by vincentdarley on 2004-05-07 20:09:15:

    1. closedate changed to: "2004-05-07T13:09:15"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      Fixed in cvs head.
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "vincentdarley"
  11. Ticket change [313dc71cbe] (rid 93390) by dgp on 2004-12-16 05:27:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Ack!  This fix never made it
      back into 8.4 ?!
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. status changed to: "Open"
    6. username: "dgp"
  12. Ticket change [639994ebe1] (rid 92606) by vincentdarley on 2004-12-17 01:38:10:

    1. foundin changed to: "obsolete: 8.4.9"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      The problem is that the 8.5 and 8.4 codebases have diverged
      sufficiently that each requires its own fix.  Unfortunately
      my time precludes doing both at the moment if that is
      complicated. I try to do both if the fix is similar, but
      sometimes it isn't.  There are now a number of filesystem
      fixes in 8.5 which are not in 8.4, and probably never will
      be, unless someone decides simply to replace 8.4's
      filesystem with 8.5's.
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  13. Ticket change [ea455df83e] (rid 103341) by dgp on 2006-03-10 12:22:23:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      sure would like this to be
      backported for 8.4.13.  I'll
      at least take a look.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. username: "dgp"
  14. Ticket change [781fb172f3] (rid 89898) by dgp on 2006-03-31 23:18:24:

    1. priority changed to: "7 High"
  15. Ticket change [4d667dfbe0] (rid 127045) by dgp on 2006-05-12 03:05:55:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  16. Ticket change [92cb3a421a] (rid 120833) by dgp on 2006-05-12 04:06:26:

    1. assignee changed to: "vincentdarley"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Here's a patch against
      Tcl 8.4.13 that needs
      testing on Windows before
      acceptance.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  17. Add attachment "943995.patch" [b5d3a07dac] (rid 125310) by dgp on 2006-05-12 04:06:27.

  18. Ticket change [4fdf526b0c] (rid 125889) by dgp on 2006-05-12 04:06:27:

    1. icomment:
      
      
      File Added - 177634: 943995.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  19. Ticket change [b38bf8d153] (rid 124877) by dgp on 2006-05-14 06:21:50:

    1. status changed to: "Pending"
  20. Ticket change [1b4fc55735] (rid 123124) by dgp on 2006-05-14 06:21:51:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2006-05-13T23:21:51"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      
      committed for 8.4.14
      please test
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. username: "dgp"
  21. Ticket change [dec8f7d5e4] (rid 114910) by sf-robot on 2006-05-28 09:21:06:

    1. icomment:
      Logged In: YES 
      user_id=1312539
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    2. login: "sf-robot"
    3. mimetype: "text/plain"
    4. username: "sf-robot"
  22. Ticket change [a107d6c1e2] (rid 96908) by sf-robot on 2006-05-28 09:21:07:

    1. closedate changed to: "2006-05-28T02:21:07"
    2. closer changed to: "sf-robot"
    3. status changed to: "Closed"