Various fixes, remove _zargs already upstream

Many movings of local inside the actual functions.
Add many missing local and remove -g(!).
Fix namespacing of some parameters and functions, phases() in _scala was nice.
This commit is contained in:
Mikael Magnusson
2012-06-10 02:41:57 +02:00
parent 3497b4841c
commit c3b4d582a0
31 changed files with 406 additions and 440 deletions
+2 -1
View File
@@ -108,7 +108,7 @@ _quickpkg () {
# Stuff for emerge
_emerge () {
local nopkg_opts all noask_opts bopts install_args common_args profiles
local nopkg_opts all noask_opts bopts install_args common_args profiles
noask_opts=(-p -a --pretend --ask --regen --info --search -s --searchdesc \
-S --version -V --help -h --metadata)
@@ -319,6 +319,7 @@ _tbz2tool () {
}
local -A Args
zparseopts -D -E -A Args -- -emerge
if (( ${+Args[--emerge]} ));then
_emerge "$@" && return 0