Overview
| Artifact ID: | 9027a5d86778cbb64c324384c38064d32090ae1e |
|---|---|
| Ticket: | 453514ffffffffffffffffffffffffffffffffff
Incorrect tilde substitution on Windows |
| User & Date: | vincentdarley on 2001-08-22 17:45:18 |
Changes
- 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"