Tcl Source Code

Ticket Change Details
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.

Artifact ID: a5ae6badef99b3613658a3af52bfadea758f1d69
Ticket: 6c49da8a19ab9fb07b4366fe37ebee105e96a859
Edge case in [file normalize]?
User & Date: dkf 2014-01-31 09:34:53

  1. Change assignee to "nobody"
  2. Change closer to "nobody"
  3. Change cmimetype to "text/html"
  4. Change comment to:

    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.

  5. Change foundin to "8.4.9, 8.6.1"
  6. Change is_private to "0"
  7. Change login to "dkf"
  8. Change priority to "5 Medium"
  9. Change resolution to "None"
  10. Change severity to "Minor"
  11. Change status to "Open"
  12. Change submitter to "dkf"
  13. Change subsystem to "36. Pathname Management"
  14. Change title to "Edge case in [file normalize]?"
  15. Change type to "Bug"