delorie.com/archives/browse.cgi | search |
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 |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
X-Injected-Via-Gmane: | http://gmane.org/ |
Path: | not-for-mail |
From: | Stephen Powell <stephen_powell AT optusnet DOT com DOT au> |
Subject: | Re: 1.3.15 on W2K: return codes, bash, cmd.exe |
Date: | Fri, 06 Dec 2002 13:52:53 +1100 |
Organization: | Hail Eris! |
Lines: | 32 |
Message-ID: | <u7kenluyi.fsf@127.0.0.1> |
References: | <20021205004220 DOT 5AA041D3D AT dragaera DOT ReleaseDominatrix DOT com> |
NNTP-Posting-Host: | sdcax81-a034.dialup.optusnet.com.au |
Mime-Version: | 1.0 |
X-Trace: | main.gmane.org 1039143373 5776 211.28.74.34 (6 Dec 2002 02:56:13 GMT) |
X-Complaints-To: | usenet AT main DOT gmane DOT org |
NNTP-Posting-Date: | Fri, 6 Dec 2002 02:56:13 +0000 (UTC) |
User-Agent: | Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3 |
(i386-mingw-nt5.0.2195) Hamster/1.3.23.210 | |
Cancel-Lock: | sha1:vKgHGwtbcc1Eh8s9mob6kFZAVqE= |
On Wed, 04 Dec 2002, angela AT dragaera DOT releasedominatrix DOT com wrote: [...] > The .bat scripts do some minimal error checking and exit with > "exit /b 1" on error. Try it without the /b, just "exit 1". With /b: $ cat a.bat exit /b 2 $ cmd /c a.bat ; echo rc=$? C:\winnt\temp>exit /b 2 rc=0 Without /b: $ cat b.bat exit 2 $ cmd /c b.bat ; echo rc=$? C:\winnt\temp>exit 2 rc=2 $ cmd /ver Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. -- Stephen Powell stephen_powell AT optusnet DOT com DOT au -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |