From: SourceForge.net <no...@so...> - 2006-11-06 21:36:43
|
Bugs item #1591407, was opened at 2006-11-06 09:46 Message generated for change (Comment added) made by dgp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1591407&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 36. File System Group: current: 8.5a5 Status: Open Resolution: None >Priority: 3 Private: No Submitted By: Colin McCormack (coldstore) Assigned to: Vince Darley (vincentdarley) Summary: anomaly in [file tail] under ~ expansion Initial Comment: [file tail ~fred/wilma] will return "wilma", but [file tail ~fred] will error, if there is no ~fred (that is, if the user fred does not exist.) It seems that when the terminal element of a file path/name is ~, it is expanded. I think that there's no good reason for [file tail] to have an existential interpretation, but that normalization of the path with a ~-element forces the existence to be tested implicitly and unintentionally. ---------------------------------------------------------------------- >Comment By: Don Porter (dgp) Date: 2006-11-06 16:36 Message: Logged In: YES user_id=80530 Did some testing in old Tcl releases and this behavior is not new. Same happens in both 8.3.5 and 7.6p2. If this were to be "fixed", what would the correct behavior be? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1591407&group_id=10894 |