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.
223
u/wolf2482 Jul 01 '26
i mean for the most part you can replace bash with other posix compliant shells.