Tcl Source Code

View Ticket
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2018 Conference, Houston/TX, US, Oct 15-19
Send your abstracts to
or submit via the online form by Aug 20.
Ticket UUID: 6c49da8a19ab9fb07b4366fe37ebee105e96a859
Title: Edge case in [file normalize]?
Type: Bug Version: 8.4.9, 8.6.1
Submitter: dkf Created on: 2014-01-31 09:34:53
Subsystem: 36. Pathname Management Assigned To: dgp
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2014-01-31 19:05:20
Resolution: None Closed By: nobody
    Closed on:

As reported in this Stack Overflow question, it looks like there's an evil edge case that's gone wrong in file normalize.

Directory structure setup:

/tmp/subdir/sidedir_link -> /tmp/sidedir
Problem trace:
wish% file normalize sidedir_link/fileA.txt
wish% ::utils::realpath sidedir_link/fileA.txt
wish% file normalize sidedir_link/../fileA.txt
wish% ::utils::realpath sidedir_link/../fileA.txt
Note: The difference is /tmp/subdir/fileA.txt versus /tmp/fileA.txt.”
It's reportedly an issue with both 8.4.9 and 8.6.1 so I expect it to be present in all other 8.4, 8.5 and 8.6 versions.

User Comments: dgp added on 2014-01-31 19:05:20:
This is probably a Dup.

Related tickets are 3577801 and 961646.

If it were easy to fix (or to define what
functioning is properly defined as "fixed"),
it would be done by now.