On 10/12/2010 15:15, Greg Wooledge wrote:
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?
Thanks Greg (and also Eric and Andreas). Your FAQ makes it very clear;
that is to say, it makes it clear how darned complicated it is. Seems
best to avoid using 'set -e' altogether, as you say (except perhaps at
an early stage for debugging): point taken.
Dominic