help / color / mirror / Atom feed
* History not deduplicated when zsh is killed by SIGHUP
@ 2020-12-05 10:04 Robert Cegliński
  0 siblings, 0 replies; only message in thread
From: Robert Cegliński @ 2020-12-05 10:04 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 730 bytes --]

I believe I discovered an issue with saving the history file. Here's a
minimal reproducer:

~ ❯ mkdir /tmp/zsh-repro
~ ❯ print
hist_ignore_all_dups" > /tmp/zsh-repro/.zshrc
~ ❯ ZDOTDIR=/tmp/zsh-repro zsh
rcarch% ls >/dev/null
rcarch% exit
~ ❯ ZDOTDIR=/tmp/zsh-repro zsh
rcarch% ls >/dev/null          # scroll up 2 times
rcarch% kill -SIGHUP $$    # or just close the terminal
~ ❯ cat /tmp/zsh-repro/histfile
ls >/dev/null
ls >/dev/null
kill -SIGHUP $$

If we launch zsh again and scroll up the history, we will receive duplicate

OS: Arch Linux
zsh: 5.8, also reproducible on current master


[-- Attachment #2: Type: text/html, Size: 951 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-05 10:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-05 10:04 History not deduplicated when zsh is killed by SIGHUP Robert Cegliński


This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-workers

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-workers zsh-workers/ http://inbox.vuxu.org/zsh-workers \
	public-inbox-index zsh-workers

Example config snippet for mirrors.
Newsgroup available over NNTP:

code repositories for the project(s) associated with this inbox:


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git