Mail Archives: djgpp-workers/2002/06/30/11:15:17
Hello.
Eli Zaretskii wrote:
>
> Richard Dawe wrote:
> >
> > I think there's actually a bug in _put_path. There's code to remove a
> > trailing slash, but it only does that for forward slashes.
>
> We simply imitate the DOS/Windows behavior for backslashes (their
> system calls fail when there are extra trailing slashes), but emulate
> the Posix behavior with forward slashes.
Ah, OK.
> On balance, I'm not sure C:/temp\ is a case important enough to change
> the current behavior.
OK.
Incidentally, try something like:
cd \\temp\\\\\\
pwd
in the DJGPP port of bash and see what you get.
> What would be the user-level situation where such a file name
> could be born?
Hmmm, I don't know.
> > IMHO it should do this for backward slashes too. The diff below contains
> > a patch for this. So far I've only tested it with a demo program, but it
> > should be tested with more heavy-duty stuff, given how important
> > _put_path is.
>
> Watch out for UNCs: we shouldn't break them, even though we don't
> really support them.
[snip]
I think the patch will break them.
Thanks, bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -