Skip to content
Tcl Source Code History Of Ticket 3183016
Login

History Of Ticket 3183016

Artifacts Associated With Ticket 3183016

  1. Ticket change [9da9c5c59d] (rid 96347) by guardus on 2011-02-16 01:03:24:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OS: Windows XP SP3
      
      Performing "cd .." from a link confuses Tcl.
      
      To recreate:
        1. Create directory test1 and subdirectory test1/test2 and then create a link in test2 to test1.
        2. cd test1/test2/<link>
        3. cd ..
        4. pwd and glob reports as if in parent of test1, but "file exists" finds file in test2 and cd acts as if in test2.
      
      See attached Tcl script.
      
    4. foundin initialized to: "obsolete: 8.5.9"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "guardus"
    10. subsystem initialized to: "36. Pathname Management"
    11. title initialized to: "cd .. from link in Windows confuses Tcl"
    12. type initialized to: "Bug"
  2. Add attachment "error.tcl" [3993ef5698] (rid 112417) by guardus on 2011-02-16 08:03:24.

  3. Ticket change [13478cfe66] (rid 124186) by guardus on 2011-02-16 08:03:24:

    1. icomment:
      
      
      File Added - 401787: error.tcl
      
      
      
    2. login: "guardus"
    3. mimetype: "text/plain"
    4. username: "guardus"
  4. Ticket change [a8636f4950] (rid 98984) by guardus on 2011-09-11 00:17:59:

    1. foundin changed to: "obsolete: 8.5.10"
    2. icomment:
      Same issue in ActiveTcl 8.5.10.1.
      
      
    3. login: "guardus"
    4. mimetype: "text/plain"
    5. username: "guardus"
  5. Ticket change [a2ed9ba29f] (rid 109974) by dgp on 2011-09-12 01:09:38:

    1. icomment:
      Please review ticket 961646
      and comment whether this is a
      new issue distinct from that, or a
      duplicate report of the same issue.
      Thanks.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [daa9086a1b] (rid 107827) by dgp on 2011-09-12 01:10:33:

    1. icomment:
      If you could also report whether any
      release of Tcl since 8.4.0 met your
      expectations on the same platform,
      that would be useful info.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [1823a36aa2] (rid 122617) by guardus on 2011-09-12 02:01:58:

    1. icomment:
      I could not find 961646, but I did find 849514, and this certainly seems to be similar to 849514.
      
      I don't have 8.4 on my system.
      
      
    2. login: "guardus"
    3. mimetype: "text/plain"
    4. username: "guardus"
  8. Ticket change [616cef19e5] (rid 259329) by serhiy.storchaka on 2026-10-19 18:44:30:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. icomment:
      Still present on Windows 11 with 8.5.19 to 9.1: after <tt>cd test1/test2/link; cd ..</tt> with a junction to test1, <nowiki>[pwd]</nowiki> and <nowiki>[glob]</nowiki> show the parent of test1, while <nowiki>[file exists]</nowiki>, <nowiki>[open]</nowiki> and <tt>cmd /c cd</tt> use test2. Tcl resolves ".." physically after the link, but Windows itself resolves it lexically.
      
      Proposed fix in branch [/timeline?r=normalize-dotdot-after-link|normalize-dotdot-after-link]: on Windows ".." is resolved lexically, as the system does (and as Python's ntpath.realpath() does), so all of them agree on test2; links elsewhere in the path are still resolved. This works for junctions and for <tt>mklink /D</tt> symbolic links, absolute or relative. Potential incompatibility: <nowiki>[file normalize junction/..]</nowiki> is now the parent of the junction, not of its target; filesystem-1.26 and 1.28 are changed accordingly. On Unix ".." stays physical, and a trailing ".." after a relative link is now resolved ([3577801fff]). Tests winFile-6.1, 6.2 and filesystem-1.57.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"