Mail Archives: djgpp-workers/2003/09/02/17:25:14
Hello.
Tim Van Holder wrote:
>
> > > From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
> > > Date: Mon, 1 Sep 2003 08:02:46 +0200
> > >
> > > > What other way is there to express "c:" with the /dev/x notation?
> > >
> > > Should there be one?
> >
> > If there's a reason to disallow it, let's hear it. If not, I'd
> > generally advise to refrain from gratuitous changes.
>
> How about simple shell sanity? Shell scripts may consider
> $dir and $dir/. to be interchangeable (and I wouldn't be surprised
> if POSIX mandated this), which would not necessarily be true in
> our case ('c:' versus 'c:/.' if $dir is /dev/c).
POSIX mandates that. From SUSv3 (which is the same as the new POSIX):
"The special filename dot shall refer to the directory specified by its
predecessor. The special filename dot-dot shall refer to the parent directory
of its predecessor directory. As a special case, in the root directory,
dot-dot may refer to the root directory itself."
> > > The /dev/xxx notation is there for POSIX support
> >
> > No, it's for programs and shell scripts which believe that every
> > absolute file name begins with a slash.
>
> Which is the POSIX way of thinking. Same difference.
[snip]
The idea of having an absolute path like /dev/c the semantics of a relative
path seems like a really bad idea.
I think this is a bug we should fix for 2.04.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -