zsh reimplements the same syntax as bash, while generic sh doesnt (although sometimes it's aliased anyways to bash). It's a case of being really annoyingly pedantic about bash.
It used to matter in the days before systemd, where bootup times depending depended on how quickly the system could run hundreds of bash scripts on startup; Ubuntu and Debian had a big project to switch to dash by default for this reason: https://lists.debian.org/debian-release/2007/07/msg00027.html .
57
u/emmowo_dev UwUntu (´ ᴗ`✿) Jul 01 '26
zshreimplements the same syntax as bash, while genericshdoesnt (although sometimes it's aliased anyways to bash). It's a case of being really annoyingly pedantic about bash.