delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/06/25/16:11:30

From: sandmann AT clio DOT rice DOT edu (Charles W. Sandmann)
Subject: Re: getcwd
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP Mailing List)
Date: Fri, 25 Jun 1993 14:54:12 -0600 (CDT)

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019