delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/22/12:27:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3C767ECD.EA117E63@hack.kampbjorn.com>
Date: Fri, 22 Feb 2002 18:24:29 +0100
From: Hack =?iso-8859-1?Q?Kampbj=F8rn?= <cygwin AT hack DOT kampbjorn DOT com>
Reply-To: cygwin AT cygwin DOT com
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en,da,es,ca
MIME-Version: 1.0
To: Jon Belinfante <Jon_Belinfante AT cwb DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: How can I get Cygwin to see the NT ERRORLEVEL Environment Variable
References: <80256B68 DOT 005CC6B4 DOT 00 AT venus DOT cwb DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g1MHRgn11096

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019