Skip to content
Tcl Source Code History Of Ticket 9c5a00c69df3018e
Login

History Of Ticket 9c5a00c69df3018e

Artifacts Associated With Ticket 9c5a00c69df3018e

  1. Ticket change [a5eb6019b3] (rid 209531) by apnadkarni on 2023-03-04 03:06:38:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      Somewhere in the 8.6 development, probably with [this](https://core.tcl-lang.org/tcl/info/a2b0c733642efea7) commit, an inconsistency is introduced between Unix and Windows. To quote the manpages, 
      
      *If a file name starts with a tilde, then the file name will be interpreted as if the first element is replaced with the location of the home directory for the given user. If the tilde is followed immediately by a separator, then the $HOME environment variable is substituted. Otherwise the characters between the tilde and the next separator are taken as a user name, which is used to retrieve the user's home directory for substitution.*
      
      Unix conforms to the documented behavior.
      
      ```
      % set env(HOME) /tmp
      /tmp
      % file normalize ~
      /tmp
      % file normalize ~apnadkarni
      /home/apnadkarni
      ```
      
      However on Windows,
      
      ```
      % file norm ~
      C:/Users/apnad/Documents
      % file norm ~ashok
      C:/Users/apnad/Documents
      % set env(HOME) D:\\temp
      D:\temp
      % file norm ~
      D:/Temp
      % file norm ~ashok
      D:/Temp
      ```
      
      Note how `~ashok` also follows setting of `HOME`.
      
      One might find the behavior on Windows more natural but it is not what is documented.
      
      Will fix for 8.6/8.7/9.0 if there are no objections.
      
      /Ashok
      
    5. foundin initialized to: "8.6"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to:
      Tilde expansion on Windows does not conform to documented behavior
      
    16. type initialized to: "Bug"
  2. Ticket change [2fdc6de16e] (rid 209544) by jan.nijtmans on 2023-03-04 10:23:46:

    1. icomment:
      No objections at all from me!
      
      It looks like this change done, originating from [9e6b569963|this] bugfix. It looks like you (@Ashok) was involved in that discussion)
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [764f65e0d9] (rid 209545) by jan.nijtmans on 2023-03-04 10:23:58:

    1. assignee changed to: "apnadkarni"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  4. Ticket change [0d745e90cc] (rid 209548) by apnadkarni on 2023-03-04 10:34:27:

    1. icomment:
      Yes, looks like it though it appears the fix did a little more than intended. Will change for 8.6 onwards.
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  5. Ticket change [e34cdadae4] (rid 209552) by apnadkarni on 2023-03-04 15:10:02:

    1. icomment:
      There are other issues with tilde on Windows as well.
      
      NetUserGetInfo generally returns an empty string for the home directory in some scenarios,for example when the user account was originally a Microsoft account (and may be even when the current account is a Microsoft account, no means for me to test). Tcl then just assumes home directory is the directory of the same name within the default profiles directory.
      
      The other additional issue is it looks in system.ini for the user account which is no longer valid in Windows NT.
      
      All three are addressed in the bug-9c5a00c69d branch.
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
    4. title changed to: "Multiple issues with tilde expansion on Windows"
  6. Ticket change [dd70db7714] (rid 209799) by apnadkarni on 2023-03-07 02:58:55:

    1. closedate changed to: "2460010.62425774"
    2. closer changed to: "apnadkarni"
    3. login: "apnadkarni"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"