On 24 May 2000, Alexandre Oliva wrote:

> How about something like (totally untested):
> 
> if (cd c:\\ && cd .. && test `pwd` = "C:\\") 2> /dev/null

This should work with any DOS/Windows environment, it's not specific to 
any of the three (DJGPP, Mingw, or Cygwin).  So it cannot reliably 
distinguish between these three.

In addition, `pwd' will report "c:/", at least with the DJGPP port of 
Bash.

Reply via email to