
23 Apr
2017
23 Apr
'17
4:42 a.m.
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