Using `/bin/sh` and `/bin/zsh`, I get the mentioned error. `echo $(sw_vers -productVersion | sed -E "s/^[0-9]+\.([0-9]+)/\\1/")` returns `14.4`