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

History Of Ticket 453514ffffffffff

Artifacts Associated With Ticket 453514ffffffffff

  1. Ticket change [e788069055] (rid 104474) by kofeinik on 2001-08-20 21:39:11:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      % info tclversion
      8.3
      % info patchlevel
      8.3.3
      % set tcl_platform(platform)
      windows
      % file join c:/temp/mydir ~mysubdir
      ~mysubdir
      %
      In windows environment, the character "~" hasn't any 
      special sign.
      But "file join" interprets ~ as path type modifier. 
      This is wrong.
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "kofeinik"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "Invalid interpretation of ~"
    11. type initialized to: "Bug"
  2. Ticket change [123374e90b] (rid 95272) by dgp on 2001-08-21 13:23:28:

    1. assignee changed to: "vincentdarley"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      Note the TILDE SUBSTITUTION section of
      
      http://tcl.activestate.com/man/tcl8.4/TclCmd/filename.htm
      
      An excerpt:
      
          "The Macintosh and Windows platforms do not support
          tilde substitution when a user name follows the tilde.
          On these platforms, attempts to use a tilde followed by
          a user name will generate an error."
      
      So apparently the correct behavior above would be to
      throw an error.
      
      Assigning to appropriate category/maintainer for 
      further review.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. subsystem changed to: "36. Pathname Management"
    6. title changed to: "Incorrect tilde substitution on Windows"
    7. username: "dgp"
  3. Ticket change [2e602e9997] (rid 119212) by kofeinik on 2001-08-22 04:47:16:

    1. icomment:
      Logged In: YES 
      user_id=286083
      
      I think, generating an error in this case can cause less 
      portability, because
      under Windows ~ is ordinary character, and sometimes 
      present in directory 
      structure.
      In case of generating of error under Windows i must always 
      create individual
      functions, that operates with directories safely, and in 
      fact, fully duplicates
      internal functionality of "file" command. Itsn't beatiful 
      solution.
      IMHO, more correct solution is in simply ignore this symbol 
      under windows.
      
      
      
    2. login: "kofeinik"
    3. mimetype: "text/plain"
    4. username: "kofeinik"
  4. Ticket change [b6202112d1] (rid 125370) by dgp on 2001-08-22 05:03:08:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      One thing to consider is whether Tcl has ever
      behaved as documented on this point?  If not,
      then perhaps changing the documented behavior
      to something more reasonable is a good idea.
      Can someone determine the history, please?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [87a239bcc5] (rid 131729) by hobbs on 2001-08-22 05:15:12:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      I wanted to note that Tcl does do the right thing for split:
      
      (hobbs) 49 % file split /a/b/~c/
      / a b ./~c
      
      and tail as well:
      
      (hobbs) 50 % file tail /a/b/~c/
      ./~c
      
      Of course, if a user just receives '~c' as a relative 
      diretory while in /a/b/, Tcl won't naturally do the right 
      thing unless the programmer checks for ~ first.  Perhaps 
      the Windows/Mac file join should be sensitive to that.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  6. Ticket change [9027a5d867] (rid 120402) by vincentdarley on 2001-08-22 17:45:18:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Tcl does behave as documented, but the documentation isn't 
      very clear.  On Mac/Win/Unix Tcl treats '~' and '~user' in 
      exactly the same way.  Any path beginning '~' is an 
      absolute path.  '~user' will throw an error when Tcl tries 
      to interpret what '~user' means (but it is quite subtle 
      when that might actually happen).
      
      What the man page cited below is trying to say is that when 
      Tcl tries to interpret '~user' it will always fail, because 
      there is never any named user on Win/Mac, so you will 
      get 'no user "user"' error messages.
      
      In fact in recent Win/MacOS releases there are such things 
      as users, so we might wish to add support for them.
      
      This is one area where Tcl's filesystem cross-platformness 
      needs re-examining.  I'm really not sure what the best 
      solution is.
      
      
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  7. Ticket change [226a1224a3] (rid 130745) by hobbs on 2001-08-23 01:35:57:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      Vince has a good point - especially with OS X now being 
      Unix based.  I suggest that better documentation is 
      necessary.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  8. Ticket change [532e0329ce] (rid 126437) by vincentdarley on 2001-08-24 00:20:34:

    1. closedate changed to: "2001-08-23T17:20:34"
    2. closer changed to: "vincentdarley"
    3. icomment:
      Logged In: YES 
      user_id=32170
      
      I've updated the documentation, which I'll commit to cvs 
      with a bunch of other stuff.
      
      Note that MacOS X will actually use unix-Tcl not mac-Tcl, 
      so Jeff's side-point isn't quite relevant here.
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "vincentdarley"
  9. Ticket change [13a45674b9] (rid 124259) by kofeinik on 2001-08-24 04:49:10:

    1. closedate changed to: "2001-08-23T21:49:10"
    2. closer changed to: "kofeinik"
    3. icomment:
      Logged In: YES 
      user_id=286083
      
      I have correctly understood, what functionality of ~ in any 
      way has not varied, and all changes have touched only 
      documentation?
      
      
    4. login: "kofeinik"
    5. mimetype: "text/plain"
    6. username: "kofeinik"