Subject: [question] && chaining vs shell loops

From: Max Kirillov <[email-masked]>
Date: Sun, 29 Mar 2015 18:48:41 +0300

Hi.

As far as I can see, loops in shell ignore non-zero exit
codes of the bodies which are not last. For example, exit
code of command 'for f in false true; do $f; done' is 0,
even if there was false.

How should one workaround it in test scripts, is there any
established approach?

-- 
Max