From: Clint Adams <schizo@debian.org>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: zsh-workers@sunsite.dk, "Jörg Sommer" <joerg@alea.gnuu.de>,
394577@bugs.debian.org
Subject: Re: Bug#394577: zsh-beta: Completion of date does not work
Date: Sat, 21 Apr 2007 01:08:37 -0400 [thread overview]
Message-ID: <20070421050837.GA16843@scowler.net> (raw)
In-Reply-To: <7805.1176802283@dcle12>
> This is what _guard is for. Use something like:
> ': :_guard "^--*" format or date'
Okay.
Index: Completion/Unix/Command/_date
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_date,v
retrieving revision 1.5
diff -u -r1.5 _date
--- Completion/Unix/Command/_date 14 Apr 2007 20:04:07 -0000 1.5
+++ Completion/Unix/Command/_date 21 Apr 2007 05:07:38 -0000
@@ -43,6 +43,6 @@
fi
_arguments \
- "$args[@]" \
'-u[display or set time in UTC]' \
- ':format or date'
+ ': :_guard "^--*" "format or date"' \
+ "$args[@]"
prev parent reply other threads:[~2007-04-21 5:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20061021222237.GA15881@alea.gnuu.de>
2007-04-14 20:00 ` Clint Adams
2007-04-17 9:31 ` Oliver Kiddle
2007-04-21 5:08 ` Clint Adams [this message]
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=20070421050837.GA16843@scowler.net \
--to=schizo@debian.org \
--cc=394577@bugs.debian.org \
--cc=joerg@alea.gnuu.de \
--cc=okiddle@yahoo.co.uk \
--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).