1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

29365: redefine _make() in _make.

This commit is contained in:
Mikael Magnusson 2011-05-27 00:10:46 +00:00
parent 32d7fea7a7
commit a75cbae6b7
2 changed files with 77 additions and 69 deletions

View file

@ -2,6 +2,9 @@
* 29331: NEWS: Note g:: parameter expansion flag.
* 29365: Completion/Unix/Command/_make: redefine _make so that
helper functions are only defined once.
2011-05-26 Peter Stephenson <pws@csr.com>
* unposted: Etc/CONTRIBUTORS: expand.
@ -14831,5 +14834,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5332 $
* $Revision: 1.5333 $
*****************************************************

View file

@ -3,10 +3,6 @@
# TODO: Based on targets given on the command line, show only variables that
# are used in those targets and their dependencies.
local prev="$words[CURRENT-1]" file expl tmp is_gnu dir incl match
local -A TARGETS VARIABLES
local ret=1
_make-expandVars() {
local open close var val front ret tmp=$1
@ -149,6 +145,12 @@ _make-findBasedir () {
print -- $basedir
}
_make() {
local prev="$words[CURRENT-1]" file expl tmp is_gnu dir incl match
local -A TARGETS VARIABLES
local ret=1
_pick_variant -r is_gnu gnu=GNU unix -v -f
if [[ $is_gnu == gnu ]]
@ -223,3 +225,6 @@ else
fi
return ret
}
_make "$@"