Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 137024c574938e9ad4df66d5f2f2a09e2608e933
Ticket: 1379287fffffffffffffffffffffffffffffffff
TclFSNormalizeAbsolutePath() fails on /tmp/..
User & Date: georgeps on 2006-04-07 11:01:20
Changes

  1. icomment:
    Logged In: YES 
    user_id=585068
    
    
    $ make shell
    LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}; export
    LD_LIBRARY_PATH; 
    TCL_LIBRARY="/gps/src/cvs/HEAD/tcl/library"; export
    TCL_LIBRARY;  ./tclsh 
    % file normalize ../..
    /gps/src/cvs
    % file normalize /tmp/../..
    % file normalize /.. 
    /
    % file normalize /../..
    %
    
    So the / result isn't occuring here.
    
    Now notice the cd behavior here after a fresh start:
    $ make shell
    LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}; export
    LD_LIBRARY_PATH; 
    TCL_LIBRARY="/gps/src/cvs/HEAD/tcl/library"; export
    TCL_LIBRARY;  ./tclsh 
    % cd /tmp/../..
    couldn't change working directory to "/tmp/../..": no such
    file or directory
    %
    
    Now here is a similar pattern, but the cd doesn't fail
    (perhaps from the failed normalize):
    
    $ make shell
    LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}; export
    LD_LIBRARY_PATH; 
    TCL_LIBRARY="/gps/src/cvs/HEAD/tcl/library"; export
    TCL_LIBRARY;  ./tclsh 
    % file normalize /tmp/../..
    % file normalize ../..
    /gps/src/cvs
    % cd /tmp/../..
    % pwd
    
    So we try this:
    $ make shell
    LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}; export
    LD_LIBRARY_PATH; 
    TCL_LIBRARY="/gps/src/cvs/HEAD/tcl/library"; export
    TCL_LIBRARY;  ./tclsh 
    % file normalize /tmp/../..
    % cd /tmp/../..
    couldn't change working directory to "/tmp/../..": no such
    file or directory
    % 
    
    So some internal state is being corrupt, and causing other
    failures :/  
    
    FWIW the tclkit built with the same sources has this problem:
    $ ./tclkit85-magichimo.localdomain 
    % cd /tmp/../.. 
    % pwd
    % 
    
    
  2. login: "georgeps"
  3. mimetype: "text/plain"
  4. status changed to: "Open"
  5. username: "georgeps"