local [ {+|-}AEFHLRUZahilprtux [n]] [ name[=value] ] ...
Same as typeset, except that the options -g
, and -f
are not permitted. In this case the -x
option does not force the use of -g
, that is, exported variables will be local to functions.