Tracking down a Zsh history data loss bug 🐞

For many years, I sometimes discovered that commands I was sure I had run were&#xA;no longer present in my Z shell history&#xA;file ( ~/.zsh_history ). In this article, I will show you how I tracked down the&#xA;bug. Spoiler: ultimately, patching Zsh to make it crash loudly and analyzing the&#xA;crash’s core dump was the winning strategy! &#xA; The good news first &#xA; Zsh 5.9.2 (released July…