Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 6 Dec 2002 13:29:47 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: 1.3.15 on W2K: return codes, bash, cmd.exe Message-ID: <20021206182947.GA23226@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20021205004220 DOT 5AA041D3D AT dragaera DOT ReleaseDominatrix DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/