This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


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

Re: GLOB_TILDE


> 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).


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