Removed old-style globals as suggested in #78

This commit is contained in:
Jaromil 2012-01-17 17:47:42 +01:00
parent b07c8ae67c
commit f7c1c05ad4

View File

@ -33,9 +33,6 @@ STEGHIDE=1
MKTEMP=1
MOUNTOPTS="rw,noatime,nodev"
#declare global variables
QUIET=0
DEBUG=0
typeset -A global_opts
typeset -A opts
@ -1662,15 +1659,6 @@ main() {
autoload colors; colors
fi
### Set global options (useless, but for code retro-compatibility)
for opt in ${(k)global_opts}; do
if [[ $opt == '-q' ]]; then
QUIET=1
elif [[ $opt == '-D' ]]; then
DEBUG=1
fi
done
CMD=$subcommand
CMD2=$PARAM[1]
CMD3=$PARAM[2]