Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8ad567ab635b30a7c7409daae4a5f7133863421b
Ticket: 2710920fffffffffffffffffffffffffffffffff
[file tail] gives wrong result
User & Date: dgp on 2009-03-27 00:47:41
Changes

  1. icomment:
    
    I can now reproduce the problem with Tcl 8.5.6:
    
    $ make shell SCRIPT=fff.tcl
    ...
    LD_LIBRARY_PATH="`pwd`:${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH; \
            TCL_LIBRARY="/home/dgp/cvs/tcl8.5.6/library"; export TCL_LIBRARY; \
            ./tclsh fff.tcl
    /opt/ {}
    
    Note that a very similar attempt yields different results:
    
    $ make shell SCRIPT=~/fff.tcl
    ...
    LD_LIBRARY_PATH="`pwd`:${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH; \
            TCL_LIBRARY="/home/dgp/cvs/tcl8.5.6/library"; export TCL_LIBRARY; \
            ./tclsh ~/fff.tcl
    /opt/ opt
    
    Same script in a different place and accessed via
    an absolute path.  So inspired by that difference, try:
    
    $ make shell SCRIPT=`pwd`/fff.tcl
    ...
    LD_LIBRARY_PATH="`pwd`:${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH; \
            TCL_LIBRARY="/home/dgp/cvs/tcl8.5.6/library"; export TCL_LIBRARY; \
            ./tclsh /home/dgp/cvs/tcl8.5.6/unix/fff.tcl
    /opt/ opt
    
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"