Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e885c4d11a496470176678c1561d84d0e21a2566
Ticket: 3559678fffffffffffffffffffffffffffffffff
[file normalize] fails EIAS
User & Date: phao1989 on 2012-08-20 01:40:58
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Command/subcommand file normalize won't normalize some elements of glob's path list.
    
    The expected behavior is to have that trailing '/' character removed, and it is not being removed.
    
    Here is some small code (output commented in the end): [http://pastie.org/4552920].
    
    However, if I ask for the string length of the list element, then it works: [http://pastie.org/4552993].
    
    That a simple test case provided by kbk in IRC (#tcl, irc.freenode.com).
    
    [22:38] <ijchain> <kbk> % file normalize [lindex [glob -dir [pwd] {{}}] 0]
    [22:38] <ijchain> <kbk> /home/kennykb/fred/
    [22:38] <ijchain> <kbk> % file normalize [join [glob -dir [pwd] {{}}] ""]
    [22:38] <ijchain> <kbk> /home/kennykb/fred
    
    I am on Windows 7, TCL Version is 8.6b2.
    
  4. foundin changed to: "obsolete: 8.6b2"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "phao1989"
  10. subsystem changed to: "36. Pathname Management"
  11. title changed to: "cmd/sub file normalize won't do in glob's result"
  12. type changed to: "Bug"