Attached: bash.jpg (800x450, 22K)
Why was this garbage ever considered acceptable?
Henry Allen
Aaron Sanders
Go back to the reddit
Nathan Barnes
Literally what's wrong with bash?
Isaiah King
It's not zsh.
Grayson Lopez
bloat
Grayson Johnson
the actual commands, not much. But the conditionals and such are pure cancer, didn't leave a space between the brace and the if? Doesn't recongize it. and then the regular expressions in that if statement don't match, when they should, because fuck you. Not to mention having to do all the stupid parenthesis and shit around variables.
Gabriel Bell
William Foster
x=5
echo $x
Wow that was hard fuckboi.
Wanna compare numbers? use (( and ))
Wanna compare strings? use [[ and ]]
There is nothing hard like you make it seem. You are just not able to write clean code, that is all.
>no space after "if".
You are just a noob at the moment.
Anthony Jenkins
Jesus fucking ass christ
is it a pasta? Because it's a pasta now, saved.
Anthony Cruz
The version that comes with Apple products is very outdated
Chase Clark
Writing working bash is easy. Writing correct bash is too tricky for most people. It's an inconsistent extension to an already shitty language.
You'll write something like `[ $x == foo ]` or `optipng *.png` and it'll work fine until it gets some unusual input and all the abstractions collapse.
Bourne shell (and to some extent Unix) is fundamentally perverse, as is reflected in the source code of the original. There are pitfalls in any language, but this one has more than most.
Blake Torres
ask anyone in IT and they will always give you the same answer...INDUSTRY STANDARD
Bourne shell and Bash were good in their day (70s and 80s) but a better shell came along in the 90s which is zsh and got ignored because people blindly use what everyone else uses
Nathan Gomez
Try simple arithmetic like "x + 1 / 2". Oops, doesn't work, better pipe it to bc and deal with the weird syntax if we want to keep only the int part or format to a specific number of digits.
Nicholas White
Zsh is worse. Use a proper shell like dash.
Xavier Flores
zsh is dogshit. Slow, buggy, no actual feature advantage over bash. Fish is much better but it's also buggy and its completion and reverse searches are crap so you're still left with bash. Never tried ksh or csh though.
Ethan Young
zsh inherits Bourne sh's problems and doesn't add enough value over bash.
fish is a step in the right direction, more so than you'd expect from something that brands itself as interactive. oil might end up being good.
Any shell that's compatible with sh is automatically broken.
Liam Hill
scripting with bash is a nightmare.
rc has a way saner syntax
Dylan Cooper
also rc+9term is the most flexible cli environment
Cameron Taylor
>zsh is slow
>fish is much better
Henry Young
My biggest gripe is the lack of floating point arithmetic support.
Levi Wood
>using apple products
I think you have bigger problem than old bash
Kevin Sanchez
>Apple can't update their shit
>It's bash fault
Henry Brooks
>Literally what's wrong with bash?
zwischenzugs.com
Mason Torres
Michael Brooks
Thanks fren, this is pretty much exactly what I was looking for.
Jack Ramirez
Ok Mr. Smartypants
Robert Hernandez
the example of that user is still correct
But true if your shit contains spaces it may be interpreted. As in other languages $foo could also be a function, which is possible in bash too.
You can also just write $foo if you want to call it. I use this quit a lot.
Eli Moore
On *BSD? Never.
Jordan Cook
Aren't they switching to zhs in the lastest release? And I hardly see why that's the fault of bash...
Luke Edwards
Big mega chad shell coming through
gitlab.redox-os.org
Jace Moore
Seeing how they avoid newer versions due to a license change, it is very much Bash's fault.
Kevin Young
BP > Shell
Sebastian Edwards
this actually looks very good, not half assed and backwards compatible like zsh
much improved syntax and doesnt even need to rely on string utilities like sed and awk
Alexander Myers
doc.redox-os.org
>Ion is a modern system shell that features a simple, yet powerful, syntax. It is written entirely in Rust, which greatly increases the overall quality and security of the shell, eliminating the possibilities of a ShellShock-like vulnerability, and making development easier. It also offers a level of performance that exceeds that of Dash, when taking advantage of Ion's features.
Cooper Robinson
>It also offers a level of performance that exceeds that of Dash
damn! Can anyone prove this?
Julian King
No, it's apple's fault. The reason they dislike the license is because of the patent clause. I have no respect for a company that intends to sue me for patent infringement just for using a shell.
Robert Wood
csh is the worst in mu opinion.
Samuel Moore
when Linus made the mistake of using GNU instead of BSD
Kayden Sanders
Oliver Thompson
I'm not talking about the license.
And nice blog screenshot retard
Landon Thomas
he's referring to userspace utilities
Benjamin Ross
Reminder
Jaxson Allen
what are you niggas' thoughts on powershell
Luke Taylor
it's pure botnet
Michael Gonzalez
Reposting I have to disagree with this. Bash is so bad that nobody wants to use it in any regard, it exists solely for legal and legacy reasons.
As an interpreter it's slower than the shell it's derived from (Bourne) and it's alternative (Almquist). It's so slow that distros had to reimpliment ash just like they did for sh in the first place (as dash).
The extensions are not worthy of note or use compared to other shells, again so unworthy of importance that it's possible for distros to replace the default sh interpreter as dash which lacks those extensions
as an interactive shell there's no real reason to use it either, shells that are older than it are both faster and have better unique syntax/features and the same is true for shells made after it.
The one and only reason bash exists is because GNU obviously couldn't use the original bourne shell because of the license. And it only exists today because it was the default for so long.
For scripts people target bourne and run in a bourne compatible shell. For interactive I legitimately see anything other than bash, most people I know today are using fish and zsh, some use ksh, I use tcsh, and some people even swear by powershell (because it's object pipeline is unique and can be sensible).
I have never once seen anyone speak well of bash specifically, anything good said about it is inherited from bourne.
Oliver Turner
>Bash is so bad that nobody wants to use it in any regard
I do.
Andrew Gomez
I'm gonna beat you up.
Josiah Ward
*blocks your path*
Jayden Cooper
What about dash?
Jace Scott
its just a fast implementation of the Bourne shell
Ryan Allen
I don't like bash, but it's the most portable option if you need more features than POSIX sh provides. Having written tens of thousands of lines of bash, I can handle various pitfalls, but it often gets really clunky to deal with the more convoluted ones. I wouldn't mind using rc or something modern and experimental like oh, but then no one could run the programs.
Jackson Cruz
Lucas Hall
I WAS ONLY KIDDING
I'm interested in hearing from rc users. If anyone does, please tell me good and bad things about it.
>oh
Neat. I need to try this.
Adrian Gonzalez
Apple also symlinks gcc to clang, and they are not even fully compatible. I had issues with that and i was wondering what was wrong until i noticed it was using clang
Anthony Price
Ahh now that's the refreshing taste of GPL/Freedom™ we can all* enjoy.
*except people who disagree with my philosophy
David Bennett
This is both disgusting and glorious
Christian Morgan
Any1 got any bash pro tips??
Carter King
What is your specific issue with bash?
Aaron Gray
Make use of declare, unset and local, when working on longer scripts.
Lincoln Morgan
Shell scripting is always awful. Use a proper scripting language.
Noah Watson
Use it to invoke a language designed to be a scripting language instead of a shell that happens to be scriptable.
Logan Reed
This whole thread is actually a poor quality bait. If it's not the person who posted it has no idea what a shell is supposed to be.
Gabriel Watson
Is there a language that’s like an interpreted C/C++ with the possibility of manual dynamic memory allocation, and objects?
James Morgan
I use Fish shell :^)
Ian Howard
>scripting language with manual memory management
That's a bit far.
Zachary Brooks
$ ls
foot.c foot.h foot.o toe.c toe.o
$ rm * .o
rm: .o: No such file or directory
$ ls
$
David Rivera
The shell is genuinely the least important part of your installation. Spending a lot of time in the shell is basically just a way to signal that you're not doing anything important.
Cameron Parker
add a space to a path and see how many people forget to quote them
Jose King
>generalization
You're a bad person.
Christian Brown
This is a design error, sure, but what’s the reasonable alternative?
Landon Gomez
What about rc?
Xavier Wilson
>rm *[space].o
well no shit, the wild card already matched everything in the directory.
Carter Sanders
>what is a headless server
Robert Howard
Sounds like a problem with apple
Jeremiah Evans
>what are background processes
Blake Phillips
its a shell language in the Plan9 OS that was to be like Bourne shell but with cleaner and simpler syntax
Andrew Price
dont feed the trustfund baby posting from Starbucks
Anthony Lopez
not having * expand to "everything in this directory" while also expanding to the regex .*
Cooper Fisher
So why don't any distros ship with that?
Josiah Brooks
>>>/sqt/
Zachary Johnson
I didnt say its Bourne shell compatible, I said its has syntax similar to Bourne shell
Zachary Lewis
They bankroll clang's and they want ot to replace GCC everywhere because they don't like the new opensource licenses
Nolan Foster
Unironically my go-to language for most problems I face.
Ryan Fisher
>bloat
>botnet
>unsafe
take your pick
Hudson Bailey
based
Ethan Watson
Apparently its easier to learn BASH than to learn how to install any other shell.
>INDUSTRY STANDARD
What fucking industry? The LINUX industry? The Shit-imitation-of-Unix industry?
The I'm too stupid to figure out any other shit industry?
Jaxson Price
"Bash" is a troubling word that can trigger some people.
Ian Mitchell
>The Shit-imitation-of-Unix industry?
most jej
Jaxon Rodriguez
>microsoft paid shill: BASH IS GARBAGE
>also microsoft; HERE INSTALL GNU + BASH ON WINDOWS 10 FOR FREE
You guys need to learn to communicate your trolling more effectively.
Also, get the fuck out. WHEN WILL WE BAN MS IP RANGE
Charles Wright
You miss my point, for text manipulation and one off commands, it's awesome. For scripting, it's a god damn nightmare. Powershell >>>>>>>>>>>>Bash in that regard.
Joseph Ortiz
Yes and? Its a known trade off not explicitly a downside
Easton Scott
>It's not fish
Fixed.
John Fisher
nice troll with that space after the wildcard. I nearly fell for it.
Justin Myers
For me? It's Ion shell combined with Alacritty.
Bentley Davis
>2020
>not using a REPL of your favorite language.
Blake Parker
Because C is even worse for scripting. Thank Unix for this brain damage.
Dominic Turner
Based "let's avoid all compatibility problems by never using anything other than one language" Lisp weenie
Noah Clark
Just use python or perl you autist
Jonathan Garcia
How does using C and Bash instead mitigate compatibility problems? For one, it introduces an additional incompatibility between scripts and the implementation of individual commands, which are now forced to communicate via plain text, parsing and serializing it every time.
David Thomas
Python is better than all shell scripting languages
And I hate python