TextEdit Will Corrupt Your Shell Commands and Lie to Your Face About It

I spent an embarrassing amount of time today chasing a dquote> prompt in zsh. Not because the commands were wrong. Not because of hidden characters in the source files. Not because of clipboard managers, bracketed paste mode, or terminal emulator quirks. Because TextEdit, Apple’s own plain text editor, was silently replacing a closing ASCII double quote with a Unicode smart quote, and doing it inconsistently enough to make the problem look like something else entirely. ...

February 20, 2026 · 5 min · Zac Lohrenz