From: Hans-Bernhard B. <br...@ph...> - 2004-03-29 14:40:22
|
On Mon, 29 Mar 2004, yossi khalon wrote: > Does anyone know what is the different between CYGWIN > environment to DOS environment? The PATH will almost certainly be a different one, and that's the central element that causes this problem: the "sort" program of Windows is an entirely different one than the one provided by Cygwin. Note the beginning of your Cygwin path: > PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Program > Files/Common Files/Adaptec > Shared/System:/cygdrive/c/csc32/bin:/usr/bin:/cygdrive/c/gvim6x/vim/vim61:/cygdrive/c/bin:/cygdrive/c/Program [...] and compare it to that in a non-Cygwin Shell: > Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program > Files\Common Files\Adaptec > Shared\System;c:\csc32\bin;c:\cygwin\bin;c:\gvim6x\vim\vim61;c:\bin;C:\Program [...] You'll have to put the c:\cygwin\bin path *infront* of the C:\winnt\system32 to let cscope find the right instance of 'sort'. But note that this could break other .bat files or tools that assume Windows tools to always be at the front of the path. A side note: the non-Cygwin environment you have there is *not* actually a "DOS environment". It's console window. Only if you actually run a DOS program in there (e.g. a DJGPP-compiled one), you'll have a real DOS environment generated inside that console window, and then only until that DOS program finishes. -- Hans-Bernhard Broeker (br...@ph...) Even if all the snow were burnt, ashes would remain. |