Skip to content
Tcl Source Code History Of Ticket 218355ffffffffff
Login

History Of Ticket 218355ffffffffff

Artifacts Associated With Ticket 218355ffffffffff

  1. Ticket change [3c2d0f8c02] (rid 120877) by nobody on 2000-10-26 00:56:38:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 4131 Bug
      Version: 8.3b2
      SubmitDate: '2000-02-07'
      LastModified: '2000-03-01'
      Severity: LOW
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Windows 98
      OSVersion: 4.10.1998
      Machine: Celeron 300 / 64 Mb
      FixedDate: '2000-10-25'
      ClosedDate: '2000-03-01'
      
      
      Name: SnakE
      
      Comments:
      The bug is in the 'glob' command. In example above its output is:
            tools Stuff ~test.file temp
          while it should be:
            tools Stuff ./~test.file temp
      
      ReproducibleScript:
      test.tsh:
        foreach name [glob -nocomplain *] { puts [file join somedir $name] }
      
      To see the bug, you should have a file which name starts with tilde, '~test.file' for example, in the current directory. Then run the test: 'tclsh83.exe test.tsh'
      
      ObservedBehavior:
      The output will be like this:
        somedir/tools
        somedir/Stuff
        ~test.file
        somedir/temp
      As you've noticed, directory name 'somedir' have been lost for the '~test.file' by 'file join' command
      
      DesiredBehavior:
      The output should be like this:
        somedir/tools
        somedir/Stuff
        somedir/~test.file
        somedir/temp
      
      
      
      The ~ is one of those chars that has to be handled separately, and
      with minor coding improvements you can make the above work without
      problems:
          foreach name [glob -nocomplain ./*] { puts [file join somedir $name] }
      
      or in 8.3:
          foreach name [glob -nocomplain -dir . *] { ... }
       
      -- 03/01/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.3b2"
    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: "problem with file names starting with tilde"
    11. type initialized to: "Bug"
  2. Ticket change [7dfd476586] (rid 97328) by welch on 2000-10-26 08:20:08:

    1. closedate changed to: "2000-10-26T01:20:08"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [9b0a0525ce] (rid 111058) by dgp on 2001-04-14 02:22:30:

    1. closedate changed to: "2001-04-13T19:22:30"
    2. closer changed to: "dgp"
    3. subsystem changed to: "36. Pathname Management"
  4. Ticket change [e3413cba8b] (rid 87763) by vincentdarley on 2002-05-31 00:35:26:

    1. assignee changed to: "vincentdarley"
    2. foundin changed to: "obsolete: 8.4a3"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      One side-effect of the new VFS code is that this bug is 
      now rather easy to fix (it would have been much more 
      complex to fix in Tcl 8.3), since the changes are now 
      restricted to tclFileName.c and tclIOUtil.c, if it is indeed 
      considered a bug.  I think it should probably be viewed 
      as a bug, since 'file split' actually handles '~' specially, 
      so should 'glob'.
      
      Any thoughts?
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. priority changed to: "5 Medium"
    7. status changed to: "Open"
    8. username: "vincentdarley"
  5. Add attachment "globTilde.diffs" [62c5827caa] (rid 92462) by vincentdarley on 2002-05-31 01:01:03.

  6. Ticket change [a1f2d157ba] (rid 109811) by vincentdarley on 2002-05-31 01:01:03:

    1. foundin changed to: "obsolete: 8.4a5"
    2. icomment:
      
      
      File Added - 24079: globTilde.diffs
      
      Logged In: YES 
      user_id=32170
      
      Attached patch to fix.
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  7. Ticket change [f6e4e2f7de] (rid 130393) by vincentdarley on 2002-06-27 19:36:55:

    1. closedate changed to: "2002-06-27T12:36:55"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      On balance I think I agree with Jeff that the current 
      behaviour is most useful.  Therefore I'm closing this 
      bug.  A patch is attached if anyone wants a different 
      behaviour.
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "vincentdarley"