[U-Boot] HUSH logical AND/OR expressions
Joe Hershberger
joe.hershberger at gmail.com
Tue Apr 28 20:00:43 CEST 2015
Hi Joakim,
On Mon, Apr 27, 2015 at 8:39 AM, Joakim Tjernlund
<joakim.tjernlund at transmode.se> wrote:
> Trying to get a better handle of HUSH shell expressions, this does not work as I expect:
> => false && true || echo ECHO
> => false && false || echo ECHO
>
> none prints ECHO, seems like a bug?
I think it works as it should. false followed by && will terminate always.
> This the only one that prints ECHO
>>= true && false || echo ECHO
This also seems correct. Passing true into && and false into || will
always continue.
Cheers,
-Joe
More information about the U-Boot
mailing list