Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-04-11
23:32 • Closed ticket [704917ffff]: cd "" - strange error message plus 3 o... artifact: bec82635d0 user: vincentdarley
2003-03-17
22:22 • Ticket [704917ffff]: 6 changes artifact: 397c983f6b user: vincentdarley
18:55 • Ticket [704917ffff]: 4 changes artifact: 1a3b1f3587 user: nobody
11:07 • New ticket [704917ffff]. artifact: 9bcac7e47c user: nobody

cd "" - strange error message

Closed / Fixed704917ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-03-17 11:07:52
cd "" does not make much sense, but produces the 
following error messages:

Windows 2000, 8.4.1
% cd ""
couldn't change working directory to "": No error

Solaris (8.4.1):
% cd ""
couldn't change working directory to "": Error 0

Richard [email protected]
nobodyplain2003-03-17 18:55:30
Logged In: NO 

Curiouser and curiouser (RS again):
% info pa
8.4.1
% cd ""
couldn't change working directory to "": Success
% array get tcl_platform
osVersion 2.4.19-64GB-SMP byteOrder littleEndian machine 
i686 platform unix os Linux user suchenwi wordSize 4
vincentdarleyplain2003-03-17 22:22:13
Logged In: YES 
user_id=32170

Ok, this is an easy fix.  One needs to add:

    } else {
Tcl_SetErrno(ENOENT);

near the end of Tcl_FSChdir(...) so that the end of that 
function reads:

    Tcl_MutexUnlock(&cwdMutex);
}
    } else {
Tcl_SetErrno(ENOENT);
    }
    
    return (retVal);
}

If anyone wishes to check this into the 8.4.2 branch, 
that would be great.  I'm working on a number of 
filesystem efficiency/simplification issues for the 8.5 
branch at the moment.
vincentdarley Closed ticket [704917ffff]. [History diff]2003-04-11 23:32:03
Log in (anonymous is fine) to add a comment.