Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: have run-help not put itself in history?
- X-seq: zsh-users 14646
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: have run-help not put itself in history?
- Date: Sun, 13 Dec 2009 20:46:03 -0500
- In-reply-to: <091213155039.ZM13648@xxxxxxxxxxxxxxxxxxxxxx> (Bart Schaefer's message of "Sun, 13 Dec 2009 15:50:39 -0800")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <19231.63798.994576.177282@xxxxxxxxxxxxxxxxxx> <733654e30912091738j726992bcvf95c313b28c4babb@xxxxxxxxxxxxxx> <m3iqceuvbc.fsf@xxxxxxxxxxxxxx> <091213155039.ZM13648@xxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: gak@xxxxxxxxxxxxxx
>>>>> On December 13, 2009 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> That the above works, almost looks like a bug to me. Why is the history
> ever reset to the default in this case? It's a stack push without any
> stack pop, and automatic popping is supposed to require the -a option
Hi Bart,
See Chapter 9: Functions -> Special Functions -> zshaddhistory:
| A hook function may call 'fc -p ...' to switch the history context so
| that the history is saved in a different file from the that in the
| global HISTFILE parameter. This is handled specially: the history
| context is automatically restored after the processing of the history
| line is finished.
> (which I think would pop the stack too soon).
Yes, it does, I tried that before finding the doc cited above.
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author