On Tue, Sep 06, 2022 at 06:00:25PM +0000, Klemens Nanni wrote:
> On Tue, Sep 06, 2022 at 05:50:31PM +0000, Lucas wrote:
> > Sorry for the noise. I wasn't aware that `set -e` only takes into
> > consideration the last command in an AND-OR list and not the exit status
> > of the AND-OR list itself.
> 
> What is the status of the list itself?
>       A && B
> returns the exit code of A if it is non-zero or the exit code of B if
> A exited non-zero.

*"if A exited zero"... putting this into words is confusing.
You can easily test/reconstruct behaviour in the shell to see yourself.

Reply via email to