23 Apr
2017
23 Apr
'17
2:42 p.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