Comment 3 for bug 901039

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote : Re: [Bug 901039] Re: almost always, if a shell command fails, the dispatcher should stop

On Mon, 27 Feb 2012 11:22:26 -0000, Andrew Stubbs <email address hidden> wrote:
> Assuming that commands are executed in a shell, an individual command
> can be allowed to fail like this:
>
> command that might fail || true
>
> so, if it fails it runs "true", so the command as a whole gives success.
>
> Equally, it could be:
>
> command || echo "COMMAND FAILED"
>
> The echo completes successfully, so the whole commands always reports
> success.

Err. We all know that :-)