Thread (1 message) 1 message, 1 author, 2018-11-12

Re: [PATCH 1/1] mingw: handle absolute paths in expand_user_path()

From: Junio C Hamano <hidden>
Date: 2018-11-12 03:03:51

Duy Nguyen [off-list ref] writes:
FWIW I don't have any preference, as long as the variable can still
have a name (that is not a symbol).
Same here.
A side question regardless of syntax. What do we do with
%(unrecognized name)/foo? I see three options

 - expand to empty, so "/foo"
 - keep it and try the literal path "%(unrecognized name)/foo"
Neither of these is good for future proofing purposes.
 - somehow tell the caller that the path is invalid and treat it like
non-existing path, even if there is some real thing at "%(unrecognized
name)/foo"
Another thing to worry about is how to spell the real thing that has
such a funny name, perhaps by escaping like "%%(unrecognized
name)/foo".

And from that point of view, "~runtime-prefix~/foo" (i.e. what J6t
started) may make the most sense, as I do not think we need to
support a username that ends with a tilde by introducing a quoting
convention.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help