On Thu, Dec 09, 2010 at 05:52:49PM +0000, Dominic Raferd wrote: > Why does this happen? Is it 'by design'? It makes arithmetic with bash > let very dangerous because it can throw unexpected errors (and break > scripts running with set -e).
http://mywiki.wooledge.org/BashFAQ/105 -- Why doesn't set -e (set -o errexit) do what I expected?