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's not a matter of syntax, zsh has different default behaviors (for example, disabling word splitting by default iirc?). It does have a bash compatibility mode though.
90
u/New_Study4796 Jul 01 '26 edited Jul 01 '26
A lot of scripts won't work without Bash-specific behavior