New blog post: Tracking down a Zsh history data loss bug π
For many years, I sometimes discovered that commands I was sure I had run were no longer present in my Z shell history file (~/.zsh_history). In this article, I will show you how I tracked down the bug. Spoiler: ultimately, patching Zsh to make it crash loudly and analyzing the crashβs core dump was the winning strategy!
https://michael.stapelberg.ch/posts/2026-08-09-zsh-history-truncation-bug/

For many years, I sometimes discovered that commands I was sure I had run were no longer present in my Z shell history file (~/.zsh_history). In this article, I will show you how I tracked down the bug. Spoiler: ultimately, patching Zsh to make it crash loudly and analyzing the crashβs core dump was the winning strategy!
https://michael.stapelberg.ch/posts/2026-08-09-zsh-history-truncation-bug/
