
28 Apr
2015
28 Apr
'15
8 p.m.
Hi Joakim,
On Mon, Apr 27, 2015 at 8:39 AM, Joakim Tjernlund joakim.tjernlund@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