Mail Archives: djgpp/1999/02/28/07:44:29
On Fri, 26 Feb 1999, david sharp wrote:
> > Why is it saying "c:/" when the "/" is not used in dos? What could be the
> > problem?
>
> a bug with djgpp is that it allows "/" in place of "\".
Actually, this is not a bug, but a very important feature.
First, all Microsoft OSes, beginning from DOS 2.0 and including
Windows 9X and NT, can handle both '/' and `\' as directory
separators, without any trouble. So you can safely pass file names
with '/' to the OS calls and they will just work. Application
programs, mainly those supplied by MS with the systems, don't usually
support '/', but that's because their application code was
deliberately written that way.
And second, using '/' allows for easy porting of Unix software that
many times chokes on DOS-style backslashes.
DJGPP applications usually support both styles of slashes, even if
they are mixed, like in c:\djgpp\bin/ld.exe.
> my first suggestion is to complain to those actually responsible for
> these bugs.
I would rather expect people to say thanks for this feature. Now, if
you find a DJGPP application that does NOT support both styles of
slashes, *then* please complain.
- Raw text -