This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: sh.exe returns incorrect exit code
- From: Tom Honermann <thonermann at coverity dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 3 Feb 2014 18:07:11 -0500
- Subject: Re: sh.exe returns incorrect exit code
- Authentication-results: sourceware.org; auth=none
- References: <3e7d738f-a4e5-4407-aafe-a54f70eb72e2 at default> <52EFCE2E dot 4060003 at coverity dot com>
On 02/03/2014 12:13 PM, Tom Honermann wrote:
$ cat doit.sh
#!/bin/sh
while [ 1 ]; do
make || {
echo "make failed unexpectedly"
break
}
done
$ cat Makefile
all:
cl.exe /c t.cpp || (shopt -s nullglob && rm -f t.obj; exit 1)
$ cat t.cpp
int i;
I've been running five copies of the above test case in my environment
(64-bit Windows 7 Pro SP1 running in VMware on a Linux host on a 4 core
processor) all day. No luck reproducing so far.
Tom.
--
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