Tk Library Source Code

View Ticket
Login
Ticket UUID: 707009
Title: fileutil::stripPwd [pwd] produces error
Type: Bug Version: None
Submitter: hgiese Created on: 2003-03-20 17:16:48
Subsystem: fileutil Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-03-26 06:57:18
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2003-03-25 23:57:18
Description:
Hello,
fileutil::stripPwd produces an error when called like
    fileutil::stripPwd [pwd]
While I would suggest to return '.' in this case, it
might make  sense to return $path unchanged, but in any
case it should not produce an error.

I attach a version where '.' is returned in this
particular case - and some typos corrected.
Best regards
Helmut Giese
User Comments: andreas_kupries added on 2003-03-26 06:57:18:
Logged In: YES 
user_id=75003

Applied to head.

andreas_kupries added on 2003-03-25 06:15:22:
Logged In: YES 
user_id=75003

Given the current description the canonical return value is, 
IMHO, either the empty string, or the unchanged path.

However the sense of the command is best handled by 
returning ".". A relative path, where the absolute pwd is 
stripped from the input.

I agree with that implementation.

andreas_kupries added on 2003-03-25 06:10:48:
Logged In: YES 
user_id=75003

There is no patch attached.

Please send the patch to me 
(<[email protected]> and 
<[email protected]>).