Thanks for your answer, I managed to worked it out in the end with the
help of this page
http://www.gnu.org/manual/bash-2.05a/html_node/bashref_18.html#SEC18
but I always like to end with a puzzle
It reminds me of a puzzle my father asked me many years ago that I
always like bringing up when the
On Thu, Oct 10, 2002 at 12:25:25PM +0930, Mark Bradbury wrote:
> Any bash shell masters out there?
>
> Can someone explain why the statement
> false && true && echo 1 || true && false && echo 2 || false || true || echo 3 &&
>echo 4 && echo 5
>
> prints out
> 4
> 5
>
> and not
> 3
> 4
> 5
>
Any bash shell masters out there?
Can someone explain why the statement
false && true && echo 1 || true && false && echo 2 || false || true || echo 3 && echo
4 && echo 5
prints out
4
5
and not
3
4
5
false && true && echo 1 || true && false && echo 2 || false || true || echo 3 && echo
4 && e