Overview
| Artifact ID: | 74fab8edcd176f3c78ed3e26883db46d37ce79d8d99abd94c6cae53e2afadaf4 |
|---|---|
| Ticket: | 9e6b569963ea497e9e623a79d5a5f92c5681bfdb
file normalize ~user fails on Windows |
| User & Date: | sebres on 2018-05-24 11:03:58 |
Changes
- icomment:
BTW. I find another strange behavior by user-home normalization: <code><pre> % set fn [file normalize ~$::tcl_platform(user)@$::env(USERDOMAIN)] \\hspfil08.my-domain\home\sergey.brester % file normalize $fn \\hspfil08.my-domain\home\sergey.brester % file normalize [string trim " $fn "] //hspfil08.my-domain/home/sergey.brester </pre></code> As you can see the normalization does not work in case of user-home, and file normalize returns native windows-path as is. The second test with "string trim" causes creation of new tcl-object (quasi to reset "normalized" flag), so enforces the normalization again (and this time it works)...
- login: "sebres"
- mimetype: "text/x-fossil-wiki"