GLOB_TILDE
Roland McGrath
roland@marker.cs.utah.edu
Tue Jul 28 09:27:00 GMT 1998
> How shall we handle the case where in globbing with GLOB_TILDE set for
>
> ~foo
>
> foo is no valid user name? What is if there is a file named ~foo?
>
> The current implementation forgets about GLOB_TILDE if the user does
> not exists and therefore will match an existing file (or return an
> error if GLOB_NOCHECK is not set). I think this is the correct way.
> Do I miss something?
Old csh without `set nonomatch' will produce an `Unknown user' error,
so it might be desireable to provide a way to diagnose that, but probably
only with an extra flag (e.g. GLOB_TILDE_NOCHECK).
More information about the Libc-hacker
mailing list