Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 22a4c793a571d6a63870fa787593bf8f8d1bb3c1
Ticket: 1255156fffffffffffffffffffffffffffffffff
[file rootname] failure
User & Date: aric_b on 2005-08-09 17:58:17
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. 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."
    
  4. foundin changed to: "obsolete: 8.5a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "aric_b"
  9. subsystem changed to: "36. Pathname Management"
  10. title changed to: "[file rootname] failure"
  11. type changed to: "Bug"