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

History Of Ticket 858937ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 858937ffffffffffffffffffffffffffffffffff

  1. Ticket change [9b7cee1311] (rid 111135) by cjmcdonald on 2003-12-12 14:44:27:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      There are some problems with the processing of file paths
      containing a ~ tilde character.  Tcl 8.4.5 - Unix (Solaris)
      and Windows (NT4).
      
      
      -------------------------------------------
      
      1) "file normalize" crashes if an invalid user name is
      specified:
      
      $ tclsh
      % file normalize ~baduser/readme.txt
      Segmentation fault (core dumped)
      
      
      -------------------------------------------
      
      2) For file names which actually start with a tilde the
      "glob -tails" processing is inconsistent with "file tail":
      
      If I have a file /home/mcdonald/temp/~test.dat, then
      "file tail" produces "./~test.dat", which subsequently
      can be used correctly with "file join" in order to
      reconstruct a full file path:
      
      $ tclsh
      % set fname [file tail /home/mcdonald/temp/~test.dat]
      ./~test.dat
      % set fspec [file join /home/mcdonald/temp $fname]
      /home/mcdonald/temp/~test.dat
      
      But "glob -tails" returns a file list including
      "~test.dat",
      which is assumed to be an absolute file specification
      by "file join":
      
      $ tclsh
      % set dir /home/mcdonald/temp
      /home/mcdonald/temp
      % set fnames [glob -tails -directory $dir *.dat]
      ~test.dat xyzzy.dat
      % set fspec [file join $dir [lindex $fnames 0]]
      ~test.dat
      
      So the output from "glob -tails" cannot subsequently
      be used reliably to reconstruct full file paths with
      "file join".  I think that for files starting with a tilde
      character "glob -tails" should return
      ./~test.dat, the same as "file join".
      
      
      -------------------------------------------
      
      3) The filename.n manpage states in the
      "Tilde Substitution" section that "The Macintosh and
      Windows platforms do not support tilde substitution
      when a user name follows the tilde."  That has not
      been the case on Windows for several releases e.g. 
      ~mcdonald/readme.txt works on Windows.
      
      
    4. foundin initialized to: "obsolete: 8.4.5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "cjmcdonald"
    9. subsystem initialized to: "36. Pathname Management"
    10. title initialized to:
      problems with file paths containing tilde character
      
    11. type initialized to: "Bug"
  2. Ticket change [1d963d9846] (rid 90838) by vincentdarley on 2003-12-12 23:27:16:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      It's best if you can report bugs separately, if you can.  But...
      
      (1) Bad bug -- I can reproduce it and will set about fixing it.
      
      (2) There have been discussions on this before.  Also note
      the long-standing behaviour of good-old 'glob *' which also
      doesn't do anything special with '~'.  The conclusions last
      time this was discussed were that this is not a bug, and it
      is easy for the user to deal with anyway.
      
      (3) That's a good point and we should update that man page,
      and also probably update 'glob's manpage to indicate that
      (2) is not a bug.
      
      Thanks!
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  3. Ticket change [d7127e1cab] (rid 123916) by vincentdarley on 2003-12-13 00:26:20:

    1. closedate changed to: "2003-12-12T17:26:20"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      Thanks -- fixed all these issues (although number (2)
      perhaps not in the way you would desire).
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "vincentdarley"
  4. Ticket change [9afca86877] (rid 111045) by vasiljevic on 2004-03-05 19:22:23:

    1. foundin changed to: "obsolete: 8.4.6"
    2. icomment:
      Logged In: YES 
      user_id=95086
      
      I have opened this one again. I strongly think that 
      the original poster is right, i.e. [glob -tails] should produce
      paths which can be safely processed by [file] commands
      in respect to tilde-filenames.
      
      I would really appreciate to hear about why's and even
      more about why not's.
      
      Zoran
      
      
    3. login: "vasiljevic"
    4. mimetype: "text/plain"
    5. resolution changed to: "Remind"
    6. status changed to: "Open"
    7. username: "vasiljevic"
  5. Ticket change [95b41de36c] (rid 106198) by vincentdarley on 2004-03-08 01:49:27:

    1. assignee changed to: "vasiljevic"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      I think the best solution is for interested parties to file
      a TIP to make the "glob" behaviour change, and see if you
      can convince the TCT. I actually have no strong feelings
      either way, but since I'm not on the TCT, I'm not the one
      you have to convince anyway.
      
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  6. Ticket change [8733133c4b] (rid 131656) by vasiljevic on 2004-03-08 02:07:08:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      Vince, this sounds as a reasonable idea. 
       
      The response on the c.l.t has shown that people  
      would rather see [file] command *not* treating 
      the tilde-files, not the [glob] itself. 
      I do not personaly care wether it is this way 
      or another. The main point is to make the entire 
      beast *safe*. As it is now, it is very easy to 
      get trapped and produce lots of damage.  
       
      Lets see if something pops out on the c.l.t. and 
      if we can get some consensus what to do (if at all). 
      I will leave this bug-report on "remind" state for 
      some time. After we get some sort of a direction, 
      the TIP will be on the way. 
       
       
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  7. Ticket change [29ea6cdaea] (rid 118466) by dgp on 2009-08-13 04:23:14:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2009-08-12T21:23:14"
    3. closer changed to: "dgp"
    4. icomment:
      
      
      allow_comments - 1
      
      
      The remaining open issue in
      this report is duplicated in 2511011.
      Continue tracking it there.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dgp"