If you insist on using 'set -e', you could do this to disable exitstatus checking on arithmetic contexts:
set -eu
i=0
for a in a b c
do
echo "${a}"
((i++)) || true
done
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main
