delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/29/17:05:44

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <0C817B08-1920-43DB-B9A0-26E4B2E362EA@apple.com>
References: <0C817B08-1920-43DB-B9A0-26E4B2E362EA AT apple DOT com>
From: Edward McGuire <cygwin DOT com AT metaed DOT com>
Date: Fri, 29 Apr 2011 16:04:59 -0500
Message-ID: <BANLkTinC3GyrJDxj6V8tBExVfvTvsrxmqA@mail.gmail.com>
Subject: Re: Cygwin 1.7.x on Windows 7: Exit statuses of Win32 executables are sometimes wrong
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Fri, Apr 29, 2011 at 13:35, John Dong <jdong AT apple DOT com> wrote:
>I've tried using a different shell (like dash), but it doesn't make a difference, leading me to suspect this to be a lower-level issue within the Cygwin DLL.
Have you tried it with the stock Windows command processor? Something
like this (untested) script?

@echo off
:redo
rem c:\path\to\exiter.exe 0
if errorlevel 1 exit /b %errorlevel%
echo %errorlevel%
goto:redo

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019