Get the latest tech news

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!

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of zsh

zsh

Related news:

News photo

Bringing down my ZSH load times from ~3.1s to ~230ms

News photo

Oh My Zsh adds bloat

News photo

Writing simple tab-completions for Bash and Zsh