Subject: Re: What should stat("",&fs) return?
To: Paul Kranenburg <pk@cs.few.eur.nl>
From: Chris G Demetriou <Chris_G_Demetriou@UX2.SP.CS.CMU.EDU>
List: current-users
Date: 05/31/1996 12:34:56
> > That make me think that they did not, in fact, argue for it, which in
> > turn leads me to wonder if the traditional BSD acceptance of "" was
> > just a minor coding bug to begin with.
>
> How about accepting `/some//dir' as equivalent to `/some/dir'. From a
> purist's point of view, it should also be rejected with ENOENT at the
> point where you would have to interpret the "" between the slashes
> as ".".
Perhaps; however, that's against traditional behaviour on all UNIX
systems, no? (POSIX specifies that foo//bar is the same as foo/bar.
it does _not_ specify the behaviour of //foo, or even /../foo...)
chris