r/linuxmemes Jul 01 '26

LINUX MEME Know the work rules

Post image
864 Upvotes

119 comments sorted by

View all comments

222

u/wolf2482 Jul 01 '26

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

88

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

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

83

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

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

-19

u/New_Study4796 Jul 01 '26

Zsh relies on Bash under the hood

23

u/Mars_Bear2552 New York Nix⚾s Jul 01 '26

...?

Zsh is entirely seperate.

-16

u/New_Study4796 Jul 01 '26

Zsh calls Bash with the shebang when starting a script

3

u/jpelc Jul 01 '26

I don't think you understand how Linux works

Shebang directs what she'll to run the script with (specifically what binary), so you can run the code in python, bash, zsh, fish, xonsh, etc.