Re: How can I get Cygwin to see the NT ERRORLEVEL Environment Variable

2002-02-22 Thread Jon Belinfante
PROTECTED] | | cc: | | Subject: Re: How can I get Cygwin to see the NT ERRORLEVEL| | Environment

Re: How can I get Cygwin to see the NT ERRORLEVEL Environment Variable

2002-02-22 Thread Hack Kampbjørn
Jon Belinfante wrote: > > Doing echo $ERRORLEVEL on cygwin returns a blank I suppose you mean in a bash shell. > where doing echo %ERRORLEVEL% at a DOS prompt returns 0. > > Has anyone got any ideas > Yes, where did you get the idea that $ERRORLEVEL should have any special meaning outside co

Re: How can I get Cygwin to see the NT ERRORLEVEL Environment Variable

2002-02-22 Thread Rick Rankin
ERRORLEVEL is a variable that is set and maintained by cmd.exe. The Cygwin (actually bash) equivalent would be the variable $?, e.g., some_command param1 param2 ... if [ $? != 0] then # The command failed fi There are a number of possible variations on this syntax. The equivalent exists for cs

How can I get Cygwin to see the NT ERRORLEVEL Environment Variable

2002-02-22 Thread Jon Belinfante
Doing echo $ERRORLEVEL on cygwin returns a blank where doing echo %ERRORLEVEL% at a DOS prompt returns 0. Has anyone got any ideas ** This e-mail