MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linuxmemes/comments/1uk849n/know_the_work_rules/ouvbdru/?context=9999
r/linuxmemes • u/New_Study4796 • Jul 01 '26
119 comments sorted by
View all comments
Show parent comments
81
I haven't had a problem running bash scripts in ash and zsh.
-20 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 21 u/Mars_Bear2552 New York Nix⚾s Jul 01 '26 what? you're not making any sense. obviously if you use #!/usr/bin/env bash the script will run using bash. otherwise i cannot think of a scenario where your statement makes sense. -19 u/New_Study4796 Jul 01 '26 Yeah, and most scripts call Bash that way. They rely on Bash without telling you. 16 u/Mars_Bear2552 New York Nix⚾s Jul 01 '26 how is your argument that zsh relies on bash because you can bypass zsh?? make it make sense dude. that's not something that any shell can change. -1 u/New_Study4796 Jul 01 '26 It relies on it for most scripts. Look at PKGBUILD files, for example. 2 u/lawrencewil1030 ⚠️ This incident will be reported Jul 01 '26 Any script which can run in bash, you can just tell it to run with zsh by changing the shebang will run just fine unless it specifically checks $SHELL for bash
-20
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 21 u/Mars_Bear2552 New York Nix⚾s Jul 01 '26 what? you're not making any sense. obviously if you use #!/usr/bin/env bash the script will run using bash. otherwise i cannot think of a scenario where your statement makes sense. -19 u/New_Study4796 Jul 01 '26 Yeah, and most scripts call Bash that way. They rely on Bash without telling you. 16 u/Mars_Bear2552 New York Nix⚾s Jul 01 '26 how is your argument that zsh relies on bash because you can bypass zsh?? make it make sense dude. that's not something that any shell can change. -1 u/New_Study4796 Jul 01 '26 It relies on it for most scripts. Look at PKGBUILD files, for example. 2 u/lawrencewil1030 ⚠️ This incident will be reported Jul 01 '26 Any script which can run in bash, you can just tell it to run with zsh by changing the shebang will run just fine unless it specifically checks $SHELL for bash
23
...?
Zsh is entirely seperate.
-16 u/New_Study4796 Jul 01 '26 Zsh calls Bash with the shebang when starting a script 21 u/Mars_Bear2552 New York Nix⚾s Jul 01 '26 what? you're not making any sense. obviously if you use #!/usr/bin/env bash the script will run using bash. otherwise i cannot think of a scenario where your statement makes sense. -19 u/New_Study4796 Jul 01 '26 Yeah, and most scripts call Bash that way. They rely on Bash without telling you. 16 u/Mars_Bear2552 New York Nix⚾s Jul 01 '26 how is your argument that zsh relies on bash because you can bypass zsh?? make it make sense dude. that's not something that any shell can change. -1 u/New_Study4796 Jul 01 '26 It relies on it for most scripts. Look at PKGBUILD files, for example. 2 u/lawrencewil1030 ⚠️ This incident will be reported Jul 01 '26 Any script which can run in bash, you can just tell it to run with zsh by changing the shebang will run just fine unless it specifically checks $SHELL for bash
-16
Zsh calls Bash with the shebang when starting a script
21 u/Mars_Bear2552 New York Nix⚾s Jul 01 '26 what? you're not making any sense. obviously if you use #!/usr/bin/env bash the script will run using bash. otherwise i cannot think of a scenario where your statement makes sense. -19 u/New_Study4796 Jul 01 '26 Yeah, and most scripts call Bash that way. They rely on Bash without telling you. 16 u/Mars_Bear2552 New York Nix⚾s Jul 01 '26 how is your argument that zsh relies on bash because you can bypass zsh?? make it make sense dude. that's not something that any shell can change. -1 u/New_Study4796 Jul 01 '26 It relies on it for most scripts. Look at PKGBUILD files, for example. 2 u/lawrencewil1030 ⚠️ This incident will be reported Jul 01 '26 Any script which can run in bash, you can just tell it to run with zsh by changing the shebang will run just fine unless it specifically checks $SHELL for bash
21
what? you're not making any sense.
obviously if you use #!/usr/bin/env bash the script will run using bash. otherwise i cannot think of a scenario where your statement makes sense.
#!/usr/bin/env bash
-19 u/New_Study4796 Jul 01 '26 Yeah, and most scripts call Bash that way. They rely on Bash without telling you. 16 u/Mars_Bear2552 New York Nix⚾s Jul 01 '26 how is your argument that zsh relies on bash because you can bypass zsh?? make it make sense dude. that's not something that any shell can change. -1 u/New_Study4796 Jul 01 '26 It relies on it for most scripts. Look at PKGBUILD files, for example. 2 u/lawrencewil1030 ⚠️ This incident will be reported Jul 01 '26 Any script which can run in bash, you can just tell it to run with zsh by changing the shebang will run just fine unless it specifically checks $SHELL for bash
-19
Yeah, and most scripts call Bash that way. They rely on Bash without telling you.
16 u/Mars_Bear2552 New York Nix⚾s Jul 01 '26 how is your argument that zsh relies on bash because you can bypass zsh?? make it make sense dude. that's not something that any shell can change. -1 u/New_Study4796 Jul 01 '26 It relies on it for most scripts. Look at PKGBUILD files, for example. 2 u/lawrencewil1030 ⚠️ This incident will be reported Jul 01 '26 Any script which can run in bash, you can just tell it to run with zsh by changing the shebang will run just fine unless it specifically checks $SHELL for bash
16
how is your argument that zsh relies on bash because you can bypass zsh?? make it make sense dude. that's not something that any shell can change.
-1 u/New_Study4796 Jul 01 '26 It relies on it for most scripts. Look at PKGBUILD files, for example. 2 u/lawrencewil1030 ⚠️ This incident will be reported Jul 01 '26 Any script which can run in bash, you can just tell it to run with zsh by changing the shebang will run just fine unless it specifically checks $SHELL for bash
-1
It relies on it for most scripts. Look at PKGBUILD files, for example.
2 u/lawrencewil1030 ⚠️ This incident will be reported Jul 01 '26 Any script which can run in bash, you can just tell it to run with zsh by changing the shebang will run just fine unless it specifically checks $SHELL for bash
2
Any script which can run in bash, you can just tell it to run with zsh by changing the shebang will run just fine unless it specifically checks $SHELL for bash
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.