This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: GLOB_TILDE
- To: drepper@cygnus.com (Ulrich Drepper)
- Subject: Re: GLOB_TILDE
- From: Roland McGrath <roland@marker.cs.utah.edu>
- Date: Tue, 28 Jul 1998 10:27:10 -0600 (MDT)
- Cc: GNU libc hacker <libc-hacker@cygnus.com>
> 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).
- References:
- GLOB_TILDE
- From: Ulrich Drepper <drepper@cygnus.com>