2

Arithmetic expressions - declare -i foo=[arith]

view full story
linux-howto

http://wiki.bash-hackers.org – Arithmetic expressions are used in several situations: * arithmetic evaluation command * arithmetic expansion * substring parameter expansion * the ''let'' builtin command * C-style for loop * array indexing * conditional expressions * Assignment statements, and arguments to declaration commands of variables with the integer attribute. (HowTos)