1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-04 20:40:57 +02:00

Merge of Frank Benkstein: 24047: fix compdef for more than three commands

using the same service.
This commit is contained in:
Paul Ackersviller 2007-11-26 02:50:44 +00:00
parent c53c6d94d7
commit 75e1523d5e

View file

@ -268,7 +268,7 @@ compdef() {
if [[ "$1" = *\=* ]]; then if [[ "$1" = *\=* ]]; then
cmd="${1%%\=*}" cmd="${1%%\=*}"
svc="${1#*\=}" svc="${1#*\=}"
func="$_comps[${_services[(R)$svc]:-$svc}]" func="$_comps[${_services[(r)$svc]:-$svc}]"
[[ -n ${_services[$svc]} ]] && [[ -n ${_services[$svc]} ]] &&
svc=${_services[$svc]} svc=${_services[$svc]}
[[ -z "$func" ]] && [[ -z "$func" ]] &&