zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: Michal Politowski <mpol@charybda.icm.edu.pl>, 379942@bugs.debian.org
Cc: zsh-workers@sunsite.dk
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	[thread overview]
Message-ID: <20060807032130.GA4406@scowler.net> (raw)
In-Reply-To: <20060806172622.GA29362@meep.pl>

> 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


       reply	other threads:[~2006-08-07  3:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20060726131212.GA2474@meep.pl>
     [not found] ` <20060806013217.GA18267@scowler.net>
     [not found]   ` <20060806172622.GA29362@meep.pl>
2006-08-07  3:21     ` Clint Adams [this message]
2006-08-13 14:58       ` Nikolai Weibull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060807032130.GA4406@scowler.net \
    --to=schizo@debian.org \
    --cc=379942@bugs.debian.org \
    --cc=mpol@charybda.icm.edu.pl \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).