cygcheck exit status

Christopher Faylor
Tue Jul 5 21:38:00 GMT 2005

On Tue, Jul 05, 2005 at 08:57:42PM +0000, Eric Blake wrote:
>Christopher Faylor <cgf-no-personal-reply-please <at>> writes:
>>On Tue, Jul 05, 2005 at 08:49:06PM +0000, Eric Blake wrote:
>>> <at>  <at>  -1677,7 +1681,7  <at>  <at>  main (int argc, char **argv)
>>>       {
>>>        if (i)
>>>          puts ("");
>>>-       cygcheck (argv[i]);
>>>+       ok &= cygcheck (argv[i]);
>>Why are you anding the result here?  Why not just set ok = cygcheck
>Because it's in a for loop, and when the first file fails but second
>succeeds, you still want the overall command to exit with failure.

Huh.  That's two useful things I've learned about C in the span of a

I'll check this in.



More information about the Cygwin-patches mailing list