From 37f43513c50e3c7b3ed5eee4144d634ab5ca1c0a Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Mon, 7 Aug 2006 03:25:31 +0000 Subject: 22588: handle targets with colons in their names. --- Completion/Unix/Command/_rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_rake') diff --git a/Completion/Unix/Command/_rake b/Completion/Unix/Command/_rake index f574d6306..72e731b22 100644 --- a/Completion/Unix/Command/_rake +++ b/Completion/Unix/Command/_rake @@ -31,7 +31,7 @@ case "$state" in ;; target) local -a targets - targets=( ${${(f)"$(_call_program targets $words[1] -sT $opt_args[(I)(-N|--nosearch)] ${(kv)opt_args[(I)(-f|--rakefile)]} 2>/dev/null)"}/(#b)rake ([^ ]##) ##\# (*)/$match[1]:${match[2]:l}} ) + targets=( ${${(f)"$(_call_program targets $words[1] -sT $opt_args[(I)(-N|--nosearch)] ${(kv)opt_args[(I)(-f|--rakefile)]} 2>/dev/null)"}/(#b)rake ([^ ]##) ##\# (*)/${${match[1]}//:/\\:}:${match[2]:l}} ) if (( ! ${targets[(I)rake aborted!]} )) then _describe -t targets 'rake target' targets && ret=0 else -- cgit 1.4.1