zsh-users
 help / color / mirror / code / Atom feed
From: Sweth Chandramouli <sweth@astaroth.nit.gwu.edu>
To: zsh-users@sunsite.auc.dk
Subject: Re: compctl question
Date: Fri, 7 May 1999 14:02:48 -0400	[thread overview]
Message-ID: <19990507140248.A5120@astaroth.nit.gwu.edu> (raw)
In-Reply-To: <19990507104446.A13127@sco.com>

On Fri, May 07, 1999 at 10:44:46AM -0700, Philip J. Hollenback wrote:
> I'm using zsh 3.1.5, and I'm trying to develop a completion for mutt.
> Here's what I currently have:
> 
> 
> mutt: if -f, -i, -a, or -H is given, complete files,
> # and if -f+ (or -f=, or -f +) is given, complete folders in
> # ~/mail.  Also complete options after -. 
> # Note that '-f =' can't be completed because '=' is grabbed by the
> # shell.  It needs to be protected with a '\', but I don't know how to
> # make the completion do that.
> # Don't complete users because I never mail anyone on my own system.
> compctl -x 's[+] c[-1,-f],s[-f+],s[-f=]' -W ~/mail -f \
>   - 's[-[fiaH]],C[-1,-[fiaH]]' -f \
>   - 's[-]' -k '(a b c e f F H i m n p R s v x y z Z h)' \
>   -- mutt
> 
> 
> I like to open mailboxes in my mail directory thusly:
> 
> # mutt -f =mailbox
> 
> That doesn't work, Apparently because the shell does something with
> words that start with '='.  I can't complete on =mailbox either,
> for the same reason.
	the EQUALS option, when set, tells the shell to interpret
# =foo
	as
# $(which foo)
	which is probably what is causing your problems.  if you don't
make use of that functionality, you can just unsetopt EQUALS and it
should work the way you would expect.

	-- sweth.

-- 
Sweth Chandramouli
IS Coordinator, The George Washington University
<sweth@gwu.edu> / (202) 994 - 8521 (V) / (202) 994 - 0458 (F)
<a href="http://astaroth.nit.gwu.edu/~sweth/disc.html">*</a>


  reply	other threads:[~1999-05-07 18:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-07 17:44 Philip J. Hollenback
1999-05-07 18:02 ` Sweth Chandramouli [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-05-10 11:15 Sven Wischnowsky
1998-02-02 12:57 Compctl question Erwin J. van Eijk
1998-02-02 15:58 ` Adam R. Paul

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=19990507140248.A5120@astaroth.nit.gwu.edu \
    --to=sweth@astaroth.nit.gwu.edu \
    --cc=zsh-users@sunsite.auc.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).