PROTECTED] |
| cc: |
| Subject: Re: How can I get Cygwin to see the NT ERRORLEVEL|
| Environment
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
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
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
4 matches
Mail list logo