This is only needed for the very oldest of non-POSIX-compatible shells. Note that this code will also only be executed on macOS, where it'd be very unlikely to run into such a shell anyways.
Followup to #1019#pullrequestreview-815300521. I had thought there were more usages of this syntax, but seems like it's just the one.
See: https://github.com/koalaman/shellcheck/wiki/SC2006
Co-authored-by: Hennadii Stepanov 32963518+hebasto@users.noreply.github.com