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!
105 points by ingve 67 days ago michael.stapelberg.ch 38 comments

Summary

A user recounts their experience with a frustrating bug that caused Zsh to lose command history. By implementing a clever patch to induce crashes and analyzing the resulting core dumps, they were able to identify the root cause of the issue.

Comments (38 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open