mirror of
https://github.com/zsh-users/zsh
synced 2024-09-16 06:30:26 +00:00
Fix exit status of compdef.
This commit is contained in:
parent
e8cb280d50
commit
f256c16efe
|
@ -1,3 +1,7 @@
|
|||
2001-06-21 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 15018: Completion/compinit: Fix exit status of compdef.
|
||||
|
||||
2001-06-20 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 14880: Completion/Base/Core/_main_complete: Fix insert-tab style
|
||||
|
|
|
@ -221,7 +221,7 @@ compdef() {
|
|||
echo "$0: I needs arguments"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
while getopts "anpPkKd" opt; do
|
||||
case "$opt" in
|
||||
a) autol=yes;;
|
||||
|
@ -251,7 +251,7 @@ compdef() {
|
|||
echo "$0: I needs arguments"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
if [[ -z "$delete" ]]; then
|
||||
# If the first word contains an equal sign, all words must contain one
|
||||
# and we define which services to use for the commands.
|
||||
|
@ -360,7 +360,7 @@ compdef() {
|
|||
fi
|
||||
if [[ -z "$new" || "${+_comps[$i]}" -eq 0 ]]; then
|
||||
_comps[$cmd]="$func"
|
||||
[[ -n "$svc" ]] && _services[$cmd]="${i#*\=}"
|
||||
if [[ -n "$svc" ]]; then _services[$cmd]="${i#*\=}"; fi
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue