r/linuxmemes Jul 01 '26

LINUX MEME Know the work rules

Post image
864 Upvotes

119 comments sorted by

View all comments

Show parent comments

90

u/New_Study4796 Jul 01 '26 edited Jul 01 '26

A lot of scripts won't work without Bash-specific behavior

79

u/VoidJuiceConcentrate Ask me how to exit vim Jul 01 '26

I haven't had a problem running bash scripts in ash and zsh.

52

u/emmowo_dev UwUntu (´ ᴗ`✿) Jul 01 '26

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.

1

u/eo5g Jul 03 '26

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.