Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: prexec never gets empty string?
- X-seq: zsh-workers 34537
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Derek Gleim <mail@xxxxxxxxxxx>
- Subject: Re: prexec never gets empty string?
- Date: Fri, 13 Feb 2015 23:16:02 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UeizFuz6HWkNS4jOFtlOFlNzzHFhKhge3QkBdKYu1uk=; b=RS7Fm+RyVxi6Xxp477/8DAYPyMmo4osoxdigiO69VaOd+nKuBL0/pBtskpV2I6lSJM n+qxC4A9xa2SbonxSr/ysWD5BVcUV+htWgDCAwbJ0wYVWz7m7ntdbumB0Dh78kyONkNy 1li172UHkxd94YpOflLaRx9nEix+gqJ3N0YXOPotrEa5H/k6mIjkAcH368eG3DE7TnOH AgTs6UkSn/gzZbP5qKIh4gy+DsjZmss0cwx+PJVY2i24UkiJssSgdj3VfChdMEyOi/uZ scLF8nOULSOycJGCnZxztd8Jo6ozMOOw22cwk/s+A6hF34gDEjRdNq22A8K61MmvQTah cJaw==
- In-reply-to: <CADS3xe8na+zBiEMT1qp+pjLXtDxzvRmC7QVjCt5VXSUu_1jbmA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CADS3xe8na+zBiEMT1qp+pjLXtDxzvRmC7QVjCt5VXSUu_1jbmA@mail.gmail.com>
On Fri, Feb 13, 2015 at 6:19 PM, Derek Gleim <mail@xxxxxxxxxxx> wrote:
> Am I misunderstanding the docs, or is this a bug?
>
>> If the history mechanism is active (and the line was not discarded from
> the history buffer), the string that the user typed is passed as the first
> argument, otherwise it is an empty string.
>
> Yet, whether I "discard" (as I understand it) a command because of
> histnostore, histignorespace, histnodups, or by returning non-zero from
> zshaddhistory(), I never get an empty string as the first argument in
> preexec().
>
> That is:
>
> % setopt histignorespace
> % preexec() { echo $1 }
> % true ignore me
> true ignore me
I certainly would never want preexec to be disabled just because a
line isn't stored in history.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author