Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#379942: zsh: rake completion doesn't work for tasks with colons in their names
- X-seq: zsh-workers 22588
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Michal Politowski <mpol@xxxxxxxxxxxxxxxxxxx>, 379942@xxxxxxxxxxxxxxx
- Subject: Re: Bug#379942: zsh: rake completion doesn't work for tasks with colons in their names
- Date: Sun, 6 Aug 2006 23:21:30 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20060806172622.GA29362@xxxxxxx>
- Mail-followup-to: Michal Politowski <mpol@xxxxxxxxxxxxxxxxxxx>, 379942@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060726131212.GA2474@xxxxxxx> <20060806013217.GA18267@xxxxxxxxxxx> <20060806172622.GA29362@xxxxxxx>
> Certainly. Attached (probably more than is relevant).
> BTW, this is rake 0.7.1-1 from unstable and, as can be probably guessed,
> the Rakefile comes from rails.
See if this fixes it.
Index: Completion/Unix/Command/_rake
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_rake,v
retrieving revision 1.5
diff -u -r1.5 _rake
--- Completion/Unix/Command/_rake 14 Sep 2005 12:45:01 -0000 1.5
+++ Completion/Unix/Command/_rake 7 Aug 2006 03:18:55 -0000
@@ -31,7 +31,7 @@
;;
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author