Overview
| Artifact ID: | 448ddf24cc2f5776d87e1d4337b9d8f04e0717e7 |
|---|---|
| Ticket: | 971976ffffffffffffffffffffffffffffffffff
Inconsistent naming in [file exists] |
| User & Date: | dkf on 2004-07-06 15:25:56 |
Changes
- icomment:
Logged In: YES user_id=79902 Hmm. Perhaps the right thing to do (for [file exists] and its friends) is to detect *before* normalization whether the filename has a separator at its end, and if so, add that back onto the filename immediately before firing it into the code that actually determines if the file exists (an alternative would be to add '/.' of course). The point is that the normalized filename is indeed free of separators at the end, but the presence of the separator at the end is important for the operation being invoked, as modelling the behaviour of [file exists] after the shell command 'test -e' would be strongly preferred by many users. Does that make sense? In fact I see an even odder bug: % file exist ChangeLog/. 1 % info patch 8.4.6 % file type ChangeLog file I find it very hard to believe that that response can be regarded as correct; I suspect that normalization is not being our friend here... :^(
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"