n=0;
((n++));echo "ret=$?;n=$n;"
((n++));echo "ret=$?;n=$n;"
((n++));echo "ret=$?;n=$n;"
from n=1
on, ((n++))
works correctly,
only when n=0
, ((n++))
return error,
and I am using a trap '' ERR
that is causing trouble with that
is it some bug?
((expr))
is equivalent tolet "expr"
to make the connection. This information is given in the answers to this question. – smheidrich Jul 26 '14 at 23:15