zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Derek Gleim <mail@dcgleim.com>
Cc: zsh workers <zsh-workers@zsh.org>
Subject: Re: prexec never gets empty string?
Date: Sat, 14 Feb 2015 21:37:57 +0000	[thread overview]
Message-ID: <20150214213757.010b0c82@ntlworld.com> (raw)
In-Reply-To: <CANOe-=7ti2p7uUAAtD309i1BkfmUwPtK+3K0eunJJkmkEJnpGQ@mail.gmail.com>

On Fri, 13 Feb 2015 16:41:24 -0600
Derek Gleim <mail@dcgleim.com> 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


  parent reply	other threads:[~2015-02-14 21:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-13 17:19 Derek Gleim
2015-02-13 17:35 ` Peter Stephenson
2015-02-13 19:27   ` Derek Gleim
2015-02-13 20:19   ` Peter Stephenson
2015-02-13 22:16 ` Mikael Magnusson
2015-02-13 22:41   ` Derek Gleim
2015-02-13 23:04     ` Mikael Magnusson
2015-02-13 23:14       ` Mikael Magnusson
2015-02-14 21:37     ` Peter Stephenson [this message]
2015-02-16 15:11       ` Derek Gleim
2015-02-16 15:16         ` Derek Gleim
2015-02-16 15:59         ` Peter Stephenson
2015-02-17 17:09         ` Bart Schaefer

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=20150214213757.010b0c82@ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=mail@dcgleim.com \
    --cc=zsh-workers@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).