From 176ba3153192ce118548c1b1f6f1fae1dfda15ee Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 1 Nov 2007 10:56:39 +0000 Subject: Frank Benkstein: 24047: fix compdef for more than three commands using the same service --- ChangeLog | 5 +++++ Completion/compinit | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 559f321a7..87781da59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-01 Oliver Kiddle + + * Frank Benkstein: 24047: Completion/compinit: fix compdef + with more than three commands using the same service + 2007-10-31 Oliver Kiddle * 24045: Src/params.c: fix memory leak where old value of an diff --git a/Completion/compinit b/Completion/compinit index ad24ac7a5..2942f435d 100644 --- a/Completion/compinit +++ b/Completion/compinit @@ -271,7 +271,7 @@ compdef() { if [[ "$1" = *\=* ]]; then cmd="${1%%\=*}" svc="${1#*\=}" - func="$_comps[${_services[(R)$svc]:-$svc}]" + func="$_comps[${_services[(r)$svc]:-$svc}]" [[ -n ${_services[$svc]} ]] && svc=${_services[$svc]} [[ -z "$func" ]] && -- cgit 1.4.1