From: Nikolai Weibull <zsh-users-list@pcppopper.org>
To: Zsh users list <zsh-users@sunsite.dk>
Subject: Re: Two Questions
Date: Tue, 2 Mar 2004 12:48:15 +0100 [thread overview]
Message-ID: <20040302114814.GH1981@puritan.pcp.ath.cx> (raw)
In-Reply-To: <20748.1078227229@csr.com>
* Peter Stephenson <pws@csr.com> [Mar 02, 2004 12:40]:
> > [= not being taken into account]
>
> This seems to be a fully paid up bug... I think it's simply that
> this chunk in _main_complete isn't testing for the option before
> trying to make `=' special. (Leading `=' should now work regardless
> of magicequalsubst --- it seems that's already smart enough to match
> a non-leading `='.)
>
> Index: Completion/Base/Core/_main_complete
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Completion/Base/Core/_main_complete,v
> retrieving revision 1.8
> diff -u -r1.8 _main_complete
> --- Completion/Base/Core/_main_complete 1 Aug 2003 16:29:21 -0000 1.8
> +++ Completion/Base/Core/_main_complete 2 Mar 2004 11:24:04 -0000
> @@ -57,7 +57,7 @@
> # Special completion contexts after `~' and `='.
>
> if [[ -z "$compstate[quote]" ]]; then
> - if compset -P 1 '='; then
> + if [[ -o equals ]] && compset -P 1 '='; then
> compstate[context]=equal
> elif [[ "$PREFIX" != */* && "$PREFIX[1]" = '~' ]]; then
> compset -p 1
Aw nice. This was what I tried doing, but I did
if compset -P 1 '=' && [[ -o equals ]]; then
instead (and I hadn't done the compdef from the previous mail either).
Works like a charm, thanks!
nikolai
--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
next prev parent reply other threads:[~2004-03-02 11:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040302104703.GC1981@puritan.pcp.ath.cx>
2004-03-02 10:58 ` Peter Stephenson
2004-03-02 11:07 ` Nikolai Weibull
2004-03-02 11:14 ` Nikolai Weibull
2004-03-02 11:33 ` Peter Stephenson
2004-03-02 11:48 ` Nikolai Weibull [this message]
1998-01-27 15:06 Two questions Bernd Eggink
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=20040302114814.GH1981@puritan.pcp.ath.cx \
--to=zsh-users-list@pcppopper.org \
--cc=zsh-users@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).