Artifacts Associated With Ticket 453514ffffffffff
Ticket change [e788069055] (rid 104474) by kofeinik on 2001-08-20 21:39:11:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "kofeinik"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "Invalid interpretation of ~"
- type initialized to: "Bug"
Ticket change [123374e90b] (rid 95272) by dgp on 2001-08-21 13:23:28:
- assignee changed to: "vincentdarley"
- 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. - login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "36. Pathname Management"
- title changed to: "Incorrect tilde substitution on Windows"
- username: "dgp"
Ticket change [2e602e9997] (rid 119212) by kofeinik on 2001-08-22 04:47:16:
- 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.
- login: "kofeinik"
- mimetype: "text/plain"
- username: "kofeinik"
- icomment:
Ticket change [b6202112d1] (rid 125370) by dgp on 2001-08-22 05:03:08:
- 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?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [87a239bcc5] (rid 131729) by hobbs on 2001-08-22 05:15:12:
- 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.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [9027a5d867] (rid 120402) by vincentdarley on 2001-08-22 17:45:18:
- 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.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [226a1224a3] (rid 130745) by hobbs on 2001-08-23 01:35:57:
- 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.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [532e0329ce] (rid 126437) by vincentdarley on 2001-08-24 00:20:34:
- closedate changed to: "2001-08-23T17:20:34"
- closer changed to: "vincentdarley"
- 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.
- login: "vincentdarley"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "vincentdarley"
Ticket change [13a45674b9] (rid 124259) by kofeinik on 2001-08-24 04:49:10:
- closedate changed to: "2001-08-23T21:49:10"
- closer changed to: "kofeinik"
- 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?
- login: "kofeinik"
- mimetype: "text/plain"
- username: "kofeinik"