This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Avoid duplicate names in /proc/registry (which may crash find)


Corinna Vinschen wrote:
On Dec 12 09:17, Eric Blake wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Corinna Vinschen on 12/12/2008 9:13 AM:
"@" for the named value, and "%.val" for the unnamed default?
Backward compatibility would ask for sticking to @ for the default
value. Actually there could be a key and a value called @ so you
have three @ items. :-P
If there is no key or value @, then use @ for the default for
compatibility.  If there is either a key or a value named @, then use:

@ - named key
@%val - named value
%val - default value

Something like that, I guess, though it I get headaches imagining that the default value is not the default value anymore if by chance a @ key or value exists. It's a pity that we didn't have Christian's patch right from the start. I'm just glad that this is a seldom border case.



Why not encode "@" as a reserved name like it is already done for "." and ".." (which appear as "%2E" and "%2E.")? This would provide backward compatibility and consistency with current conversions:


@ - default value
%40 - named key or value
%40%val - named value if key exists

I will post a patch.

Christian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]