Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: prexec never gets empty string?
- X-seq: zsh-workers 34546
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Derek Gleim <mail@xxxxxxxxxxx>
- Subject: Re: prexec never gets empty string?
- Date: Sat, 14 Feb 2015 21:37:57 +0000
- Cc: zsh workers <zsh-workers@xxxxxxx>
- In-reply-to: <CANOe-=7ti2p7uUAAtD309i1BkfmUwPtK+3K0eunJJkmkEJnpGQ@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> <CAHYJk3RKv8bZUy-DS3-QWZ6ykRRZejrF0Wwpwa=wdA1-1HCNZw@mail.gmail.com> <CANOe-=7ti2p7uUAAtD309i1BkfmUwPtK+3K0eunJJkmkEJnpGQ@mail.gmail.com>
On Fri, 13 Feb 2015 16:41:24 -0600
Derek Gleim <mail@xxxxxxxxxxx> wrote:
> > I certainly would never want preexec to be disabled just because a
> line isn't stored in history.
>
> I don't follow. Me neither. My understanding is if the line isn't going to
> be stored, preexec is still called, but it is supposed to be given an empty
> string as the first argument when the command will be ignored by history
> (while the second and third arguments give you the command regardless). No?
Sorry, no. I was misunderstanding completely --- I thought your error
was that spaces were wrong in the line that was being output.
As Mikael says, it's certainly not the case that preexec is supposed to
veto lines based on the history. It's purpose is unrelated to the
recording of history: it's there to pass information about the line
about to be executed.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author