zsh-users
 help / color / mirror / code / Atom feed
From: Han Pingtian <hanpt@linux.vnet.ibm.com>
To: zsh-users@zsh.org
Subject: Re: question about "-E" option of compadd
Date: Mon, 25 Apr 2016 15:48:39 +0800	[thread overview]
Message-ID: <20160425074839.GL17476@localhost.localdomain> (raw)
In-Reply-To: <CAH+w=7bF82MSZmqQoBLgRC-2HSZ=S1tAJ66=2c0XdEDaBak48w@mail.gmail.com>

On Sun, Apr 24, 2016 at 09:36:00PM -0700, Bart Schaefer wrote:
> On Sun, Apr 24, 2016 at 8:07 PM, Han Pingtian <hanpt@linux.vnet.ibm.com> wrote:
> >
> >     And because all but one empty string would otherwise be removed,
> >     this  option implies  the  -V  and  -2 options (even if an
> >     explicit -J option is given).
> >
> > But isn't the action "all but one empty string be removed" implying a
> > "-1" option? "-2" option should keep all empty strings I think.
> 
> Note the word "otherwise" in the "And because ..." sentence.
> "Otherwise" in this context means "if -E were not used".
> 
> "And because all but one empty string would be removed if -E were not
> used, it is the case that -E implies -V and --2."

Thanks. But looks like even if -E was used, all but one empty strings
still being removed ? like this:

% _foo()
compadd -E 3 foo1 foo1 foo1 foo2 foo3 '' '' ''
% compdef _foo foo
% foo <tab>
   foo1 foo2 foo3


there is only one empty string showed.

Thanks in advance.


  reply	other threads:[~2016-04-25  7:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-25  3:07 Han Pingtian
2016-04-25  4:36 ` Bart Schaefer
2016-04-25  7:48   ` Han Pingtian [this message]
2016-04-25 19:20     ` Bart Schaefer
2016-04-26  0:51       ` Han Pingtian

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=20160425074839.GL17476@localhost.localdomain \
    --to=hanpt@linux.vnet.ibm.com \
    --cc=zsh-users@zsh.org \
    /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).