Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3db5699e0206b713a34cd7fdeb5a7cb26bc85495
Ticket: 2710920fffffffffffffffffffffffffffffffff
[file tail] gives wrong result
User & Date: jepler on 2009-03-26 07:08:33
Changes

  1. icomment:
    I failed to correctly minimize the test case in my original submission.  Please see the attached 'fff.tcl' instead of the original attachment.
    
    $ cat fff.tcl 
    proc f {} {
        set d [glob -nocomplain /*/]
        set d [lindex $d 0]
        #set d [format %s $d]   # uncommenting this line makes both 8.4 and 8.5 work
        puts stderr [list $d [file tail $d]]
    }
    
    f
    
    $ make shell SCRIPT=fff.tcl
    LD_LIBRARY_PATH="`pwd`:${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH; \
    TCL_LIBRARY="/tmp/tcl8.5.6/library"; export TCL_LIBRARY; \
    ./tclsh fff.tcl
    /mnt/ {}
    $ 
    
    
    
  2. login: "jepler"
  3. mimetype: "text/plain"
  4. username: "jepler"