Mail Archives: djgpp/1993/06/25/16:11:30
> I would think the best way to handle this would be to "unix-ize" the dos
> pathname by modifying the open routines to handle filenames that specify
> the drive in a unix compatible, but DOS recognizable fashion...
>
> One possible solution would be:
>
> /<drive>//path
>
> ie c:\src\djgpp would be /c//src/djgpp
> but \c\src\djgpp would be /c/src/djgpp
>
> This method shouldn't break any utilities unless they parse the full pathname
> to remove duplicate /'s...
Since /c//src/djgpp and /c/src/djgpp are the same under unix, I have had to
modify some code to strip the double slashes that some unix routines leave
in when parsing. And since you might have a \c directory on your current
drive... DOS just isn't unix :-)
- Raw text -