Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 6 Dec 2002 13:29:47 -0500
From: Christopher Faylor <cgf@sources.redhat.com>
To: cygwin@cygwin.com
Subject: Re: 1.3.15 on W2K: return codes, bash, cmd.exe
Message-ID: <20021206182947.GA23226@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20021205004220.5AA041D3D@dragaera.ReleaseDominatrix.com> <u7kenluyi.fsf@127.0.0.1> <asqpnc$3bc$1@main.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <asqpnc$3bc$1@main.gmane.org>
User-Agent: Mutt/1.5.1i

On Fri, Dec 06, 2002 at 10:19:30AM -0800, Shankar Unni wrote:
>Stephen Powell wrote:
>
>>Try it without the /b, just "exit 1".
>
>Notice that she said she tried it, it works, but is not an option for 
>her because they need to be invoked from DOS command shells as well, and 
>she doesn't want the bat files to cause those shells to exit.

Angela is a former valued colleague of mine from Cygnus and Red Hat
days, so I offered some suggestions in private email.

It looks like if she changes the invocation of her .bat files from just
"foo.bat" to "cmd /c call foo.bat" then an "exit /b" in foo.bat will
work correctly.

I'm contemplating making a change to cygwin to cause this to be the
default.

cgf

--
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/

