declare / typeset

declare / typeset#

Bash variable declaration with attributes.

$ declare -i count=0
$ declare -a list=(one two three)
$ declare -A map=([key]=value)
$ declare -r PI=3.14159