Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 321c6fa412aadebfc7d1fd1bb185e77e5b986d04
Ticket: 2001389fffffffffffffffffffffffffffffffff
empty string as path: troubling exceptions
User & Date: dgp on 2008-06-24 10:51:02
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    Originator: YES
    
    
    Comments at lines 2711-2716
    of tclPathObj.c appear to address
    this matter:
    
        /*
         * A special case is required to handle the empty path "". This is a valid
         * path (i.e. the user should be able to do 'file exists ""' without
         * throwing an error), but equally the path doesn't exist. Those are the
         * semantics of Tcl (at present anyway), so we have to abide by them here.
         */
    
    I don't really understand the reasoning
    asserted in that comment, but at least it
    indicates this difficult situation is in place 
    intentionally.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"