Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 Reply-To: Cygwin List <cygwin AT cygwin DOT com> Message-Id: <6.2.0.14.0.20050307114035.034a9a18@pop.prospeed.net> Date: Mon, 07 Mar 2005 11:43:05 -0500 To: zevel <zg DOT cyg AT zevelx DOT net>, cygwin AT cygwin DOT com From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com> Subject: Re: cygwin1.dll exit status In-Reply-To: <422C6575.2010006@zevelx.net> References: <422C6575 DOT 2010006 AT zevelx DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 09:30 AM 3/7/2005, you wrote: >The latest version of cygwin1.dll ("cygwin1.dll" v0.0 ts=2005/3/1 11:01) does not return the correct exit status when a Cygwin application is called from Windows. Older versions such as ("cygwin1.dll" v0.0 ts=2004/11/10 8:34) do. > > >Example: > >Create the bash script - error4.sh >------------------------------------------------- ># ># simple script to return the exit status of 4 ># >exit 4 >------------------------------------------------- > >The from the Windows command prompt run the following: > >C:\TMP> bash error4.sh >C:\TMP> echo %errorlevel% > >For an older cygwin1.dll the output is: >4 > >For the newest cygwin1.dll the output is: >1024 See <http://sources.redhat.com/ml/cygwin/2005-01/msg01382.html>. Also look at the similar thread about this same issue last week: <http://sourceware.org/ml/cygwin/2005-03/msg00088.html>. This is all as-designed/as-intended. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/