On 5/23/22, Matt Zagrabelny <mzagrabe@xxxxxxxxx> wrote:
> Why does the subshell in zsh get executed even though the conditional
> branch is not? That is, the "touch"-ing of /tmp/FOO.
You're most likely using a poorly written prompt theme and/or thing
that updates your terminal title.
Try disabling that code and try
again if so.
Yup - that was it. I removed my .zshrc and it works as expected.
Thanks for the hint! Time to figure out what poorly written part of my .zshrc is to blame.