This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 command.com/cmd.exe ?

Teaching you the unix-way is not the purpose of this list
(http://cygwin.com/lists.html), but you could start with `man bash` to
learn about bash. Look for `?' under Special Parameters.

-- 
Med venlig hilsen / Kind regards

Hack Kampbjørn

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]