If I am using a var as an index in a for loop
as in:
for((i=0; i<10; ++i)); do : done
or 2) as an iterator as in
for i in {1..10}; do : done
**and** such usage is in a function,
the default is to promote 'i' to 'global' status,
which is usually not needed nor desired (that doesn't mean
> Repeat-By:
> shopt -u extglob
> isnum () ( shopt -s extglob; case "$1" in [1-9]*([0-9])) return 0 ;;
> *) return 1 ;; esac; )
Remember that bash parses and interprets the script line-by-line. If you want
to change the parser's operation (for example, have it recognize the extglob
p