2026-08-09 08:19 UTC
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/
Replies (1)
-
@zed@mstdn.party 2026-08-09 19:54
@zekjur@mas.to @siracusa@mastodon.social fascinating read ! To the Appendix B, AI section… is there a reason why you didn’t use Mistral AI’s models in your tests ? I know that generally they’re not as good as OpenAI’s/Anthropic’s, but being the only non-US/non-China company that could claim to have a frontier model (debatable, but it does come close), I think it’d be nice to include in the data.