Re: dash-0.5.8 bug report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21/11/2014 14:55, David Binderman wrote:
Hello there,

eval.c:273:19: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]

         if (!exitstatus == isor)

Maybe

         if (exitstatus != isor)

was intended.

This looks correct to me. isor represents the type of command composition. It can be 0 (&&), 1 (||) or 2 (;). If isor == 0, the second command should not be executed if exitstatus != 0. If isor == 1, the second command should not be executed if exitstatus == 0. If isor == 2, the second command should be executed.

Cheers,
Harald van Dijk
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux