On 2013-08-18 16:57, David Lehmann wrote: > The ((i++)) fails only when the result is 1. When the result is 0 or 2, it > does not fail. This is a problem when 'set -e'.
This is normal and expected. If the value returned in an (( expression is zero, then the exit code is 1. Since you're using a postincrement, zero is returned, and then i is incremented to 1.
pgp_Hxjx34lLU.pgp
Description: PGP signature