Cygwin 1.7.x on Windows 7: Exit statuses of Win32 executables are sometimes wrong
Edward McGuire
cygwin.com@metaed.com
Sat Apr 30 11:30:00 GMT 2011
On Fri, Apr 29, 2011 at 13:35, John Dong <jdong@apple.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
More information about the Cygwin
mailing list