* Somebody remind me of the reasoning in readhistfile()?
@ 2015-01-31 19:06 Bart Schaefer
0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2015-01-31 19:06 UTC (permalink / raw)
To: zsh-workers
newflags = HIST_OLD | HIST_READ;
if (readflags & HFILE_FAST)
newflags |= HIST_FOREIGN;
if (readflags & HFILE_SKIPOLD
|| (hist_ignore_all_dups && newflags & hist_skip_flags))
newflags |= HIST_MAKEUNIQUE;
hist_skip_flags is always either the single bit HIST_FOREIGN, or zero.
The initial value is zero.
The only way to change hist_skip_flags is with "zle set-local-history",
which it's not possible to execute during reading of init files.
This means (unless I'm missing something?) that HIST_MAKEUNIQUE is never
used here unless set-local-history has been executed by the user. That
in turn means that set-local-history changes the behavior not just of
history ZLE bindings but of the actual incremental read of the history
file if share_history is set.
Why does HIST_MAKEUNIQUE depend on this?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-31 19:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-31 19:06 Somebody remind me of the reasoning in readhistfile()? Bart Schaefer
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).