summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_rake2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index da925bbb0..09816f462 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-06 Clint Adams <clint@zsh.org>
+
+ * 22588: Completion/Unix/Command/_rake: handle targets
+ with colons in their names.
+
2006-08-04 Peter Stephenson <pws@csr.com>
* 22587: INSTALL, MACHINES, NEWS< README: update notes on
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