Which distro ships with zsh?
linuxmasterrace
A community for Linux enthusiasts.
May your htop stats be low and your beard grow long
Welcome to !linuxmasterrace@feddit.de former r/linuxmasterrace members and existing Lemmyverse citizens: Feel free to join the newly created !linuxmasterrace@feddit.de community.
Let’s make the full transition to the decentralized Fediverse!
Kali
Okay, you guys get the once in a liftetime chance to convince me that Bash is not the way to go. I'll eagerly await your proposals.
$array
actually expands to every element in an array.
Very convenient. But ~every shell script is written in bash or POSIX(y) sh. When I need to write shell scripts I begin with busybox sh compability. If it turns out to be too complex, I'll convert to bash. This is because if I ever would publish the script it would have better changes to be accepted as a PR for example. Yes. Bash is a mess. I don't even like it that much. It's okay. But it's more standard then zsh. Although I've seen the tides turn on some occasions, like macOS.
Maybe some day I'll give zsh a second chance.
I used to write Bash more than anything, but now the things I write are either simple enough to keep POSIX or complex enough that I miss the extra niceties Zsh provides.
but now the things I write are either simple enough to keep POSIX or complex enough that I miss the extra niceties Zsh provides.
Well said!
This is me but for fish shell.
sh scripts can be run in even the dumbest distro out there, bash, not so much
The debate was between zsh and bash, not necessarily POSIX sh.
What tool are u using for transferring your posts from reddit? Or is this done manual?
Try fish with the tide plugin and the fzf plugin. I can never go back to anything else.
I love fish, only it annoys me, if I want to run a bash script.
Why is that? You can still use bash to interpret your bash scripts. Where does it annoy you?
I have to switch to bash first, and wonder days later, why I can't find it (obviously) in my fish history.
I mean, doesn’t the script have a hash bang pointing to the bash interpreter?
#!/usr/bin/bash
Or you can just run it like:
bash script.sh
I know, well the lazyness is strong in me. Copy and paste.