From: Stephen Powell <stephen_powell@optusnet.com.au>
To: cygwin@cygwin.com
Subject: Re: 1.3.15 on W2K: return codes, bash, cmd.exe
Date: Fri, 06 Dec 2002 02:23:00 -0000 [thread overview]
Message-ID: <u7kenluyi.fsf@127.0.0.1> (raw)
In-Reply-To: <20021205004220.5AA041D3D@dragaera.ReleaseDominatrix.com>
On Wed, 04 Dec 2002, angela@dragaera.releasedominatrix.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@optusnet.com.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/
next prev parent reply other threads:[~2002-12-06 10:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-04 17:05 Angela Marie Thomas
2002-12-06 2:23 ` Stephen Powell [this message]
2002-12-06 10:28 ` Shankar Unni
2002-12-06 10:42 ` Christopher Faylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u7kenluyi.fsf@127.0.0.1 \
--to=stephen_powell@optusnet.com.au \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).