[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
why use zsh or fish over bash?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 27
Thread images: 2
File: download.png (1 KB, 225x225) Image search: [Google]
download.png
1 KB, 225x225
why use zsh or fish over bash?
>>
Why indeed. I don't.
>>
>>55257339
Snowflake points
>>
>>55257339
because of features and ricing.
bash has arguably less features out of the box compared to fish or zsh.
>>
>>55257339
There is honestly no point to using a shell other than the one that came with your OS unless it's REALLY fucking bad.

A POSIX compatible shell is usually enough.
>>
Zsh has better autocomplete
>>
>semiunixism

>bash
>for true unix
>ever
>>
tcsh :^)
>>
High intensity autism

I like scripts I write to be portable. Almost everything I touch has bash. Shit, even Windows has bash now. So using zsh just makes things more difficult for yourself. It's like people who learn dvorak, which sounds great until you need to use a PC that you can't change they keyboard layout on.
>>
>>55257590
>He thinks he has to use the same shell he writes scripts in
>>
>>55257637
Depends on the script.
>>
>>55257339
edge
>>
>>55257339
They have better interactive features. It's like asking why use vim/emacs/nano/sublime/atom over ed.
>>
>>55257339
Way better tab completion. But if I'm writing a script, it uses bash for portability
>>
>>55257648
No it doesn't.
>>
Bashisms are too tempting when I use bash.
>>
I don't need that much autocompletion (which slows it down, and it's pretty much just bloat), and bash is pretty much everywhere, so I use bash on my computer so I can be efficient with it.

Zsh is good for people with severe autism.
>>
>>55257672
>not writing scripts in sh
> time bash -c 'for i in {{1..1000}}; do dash -c exit; done'
0.03user 0.09system 0:00.62elapsed 21%CPU (0avgtext+0avgdata 3428maxresident)k
0inputs+0outputs (0major+103046minor)pagefaults 0swaps

> time bash -c 'for i in {{1..1000}}; do bash -c exit; done'
1.51user 0.33system 0:03.68elapsed 50%CPU (0avgtext+0avgdata 3348maxresident)k
0inputs+0outputs (0major+211411minor)pagefaults 0swaps
>>
>>55257687
>so I can be efficient
>I don't need autocompletion
Enjoy not being able to type at 400 WPM.
>>
>>55257339
zsh
>amazing autocomplete
>anti pastejacking features
>vim mode
>>
File: crunchbang.jpg (64 KB, 1680x1050) Image search: [Google]
crunchbang.jpg
64 KB, 1680x1050
>>55257339
Disappointed, saw the logo and thought this was about a Crunchbang revival.
>>
>>55257673
Yes, it does. There are non-portable parts of all shells.
>>
>>55257717
If I used Zsh, I would end up wasting my time, because I expect tab to autocomplete pretty much everything, and I could forget something, because I relied on autocompletion.

Bash has emacs keybindings too, so it's possible to write your commands in it pretty fast.
>>
>>55257572
Is there honestly any advantage to using that other than backwards compatibility with shell scripts from 30 years ago?
>>
>>55257817
no that's about it
>>
>>55257766
Writing a bash script does not require you to use bash as your shell, just like running a Python program does not require you to use Python as your shell.
>>
>>55257918
We're not talking about your misunderstanding.
Thread replies: 27
Thread images: 2

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.