Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Finding the first history event of the current instance
- X-seq: zsh-workers 35401
 
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
 
- To: zsh-workers@xxxxxxx
 
- Subject: Re: Finding the first history event of the current instance
 
- Date: Sat, 6 Jun 2015 09:54:42 -0700
 
- In-reply-to: <87a8weczj4.fsf@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: <87r3q7nzkr.fsf@gmail.com> 	<150529171657.ZM15077__24226.5334389687$1432945137$gmane$org@torch.brasslantern.com> 	<87a8weczj4.fsf@gmail.com>
 
On Jun 5, 10:47am, Christian Neukirchen wrote:
}
} I'd have expected it to print nothing, because the local shell history
} is empty?
The documentation was updated after the 5.0.8 release to clarify this:
    -L
          restricts to only local events (not from other shells, see
          SHARE_HISTORY in *Note Description of Options:: - note that
          $HISTFILE is considered local when read at startup)
At the same time, this was added:
    -I
          restricts to only internal events (not from $HISTFILE)
You want the latter, but unfortunately 5.0.8 doesn't have it.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author