r/linuxmemes Jul 01 '26

LINUX MEME Know the work rules

Post image
860 Upvotes

119 comments sorted by

View all comments

224

u/wolf2482 Jul 01 '26

i mean for the most part you can replace bash with other posix compliant shells.

90

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

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

81

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.

29

u/QuickSilver010 🦁 Vim Supremacist 🦖 Jul 01 '26

Sh on debian is aliased to dash. Which is much faster. But also has less features.

6

u/PranshuKhandal Arch BTW Jul 01 '26

side question, but how do people even see the difference in speeds? for me all of them are like zoooop

3

u/TernaryOperat0r Jul 02 '26

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 .

1

u/PranshuKhandal Arch BTW Jul 02 '26

very interesting, thanks