Because I hate myself I guess, I use zsh as my interactive shell, but generally write scripts for bash. The latter is mostly for portability (although with Macs stuck on 3.2 unless updated manually, that’s less true over time), and also because shellcheck doesn’t work on zsh.
This means I get to remember an increasingly unfortunate amount of differences. I’ll add this one to the pile, thanks.