Overview
| Artifact ID: | 22a4c793a571d6a63870fa787593bf8f8d1bb3c1 |
|---|---|
| Ticket: | 1255156fffffffffffffffffffffffffffffffff
[file rootname] failure |
| User & Date: | aric_b on 2005-08-09 17:58:17 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- comment changed to:
When the result of a call to [glob]* is stored in a variable, and then [file rootname] is performed on any list element stored in that variable, [file rootname] fails to remove the file extension of the list element. The following script demonstrates the error (pathnames may need to be adjusted): # the following fails set files [glob d:/temp/p*] foreach file $files { puts [file rootname $file] } # the following succeeds foreach file [glob d:/temp/p*] { puts [file rootname $file] } # the following fails foreach file [lsort -dictionary [glob d:/temp/p*]] { puts [file rootname $file] } *Donal Fellows notes on c.l.t. : "the directory must be specified (either in the pattern or through the -directory flag) and 'glob characters' must be present in the input to [glob] to trigger the bug." - foundin changed to: "obsolete: 8.5a3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "aric_b"
- subsystem changed to: "36. Pathname Management"
- title changed to: "[file rootname] failure"
- type changed to: "Bug"