Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: prexec never gets empty string?
- X-seq: zsh-workers 34540
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Derek Gleim <mail@xxxxxxxxxxx>
- Subject: Re: prexec never gets empty string?
- Date: Sat, 14 Feb 2015 00:14:03 +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=2y3cJ0u/I9gEFd4QRAvVq8NRguyKhPcymo22WaPQuXk=; b=Zz/NdzsDUV/WacLTkxQhsyQnKQP3R5b0vySR2ojyMGYXMwTSc7rz1H4hGsi697ZFJD Z9ynL/Wl+k5GVSZsXZ1bMg1tYzLvRgHzngEf/xxLcpJhT3T4cVdt2ECvWBLwAkeVN83/ uDQ/OTNEfFLuH1+E7k82YjJ6rg3fi3KsN5+uu5ipB1h5llIABroHBjfrfm9ql4wSDBQP 9V9KkVw+HvII1OGqioqqOp/Cc6X4SOUbOuy4/ULdDwuNHXpC2RmuieHVIN2gprTMxObY EkHPs980Dwluxj8GNPPjpAs2ceWqS8qQGOj13yITf1PHpRobQwgWThQCsu4Aqh+zB01J et2w==
- In-reply-to: <CAHYJk3RLr7PO6ARW5Xn-GBXvvs_UYXpBJ9C4Y5vFFyXxWrtDyg@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> <CAHYJk3RLr7PO6ARW5Xn-GBXvvs_UYXpBJ9C4Y5vFFyXxWrtDyg@mail.gmail.com>
On Sat, Feb 14, 2015 at 12:04 AM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On Fri, Feb 13, 2015 at 11:41 PM, 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?
>
> Judging by http://www.zsh.org/mla/workers/2001/msg00605.html , the
> empty string was never intended as a feature, just a workaround for
> not having access to the string. I guess a subsequent change made the
> string always be available. Possibly the feature that always keeps the
> last command in history until you run another command is newer than
> this change and is why it always works now.
Yep, here we are, the month after:
http://www.zsh.org/mla/workers/2001/msg01028.html
So this part of the manual was only accurate for about 21 days in 2001.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author