Holy fuck Jow Forums I wasted my morning trying to programming in this shit language (if you can even call it a language) >put a space by a = fuck you >put a space in a random place it didn't expect fuck you & it wont tell you where the problem is >try to save results inside a pipe fuck you >want your output saved with newlines instead of smashed the fuck together, just kill yourself >want to save your piped results to an array, impossible >your code worked once now it doesn't, no you didn't make changes it just fucking stopped working fuck it all I'll take powershell, ruby, python, even fucking C over this crap
>he doesn't do all his server side scripting in Node.js
Brayden Ward
no you
Eli Wilson
half of these are basically >I didn't use the proper syntax, why doesn't it work and the other half is you being a retard
Adrian Barnes
Yeah bash is pretty fucked There's a reason perl was so popular It was a better scripting language for linux tasks Nowadays python is preferred, as it's more readable
Sometimes though, a simple five to ten line bash script does the trick
David Campbell
shouldn't you be using awk if you want Features?
Grayson Nguyen
I don't think Bash syntax is defensible
Jayden Rivera
prepare for retards trying to defend it it's the shittiest things I've seen in unix, and there is plenty of shit to pick from
Anthony Long
set -euo pipefail
thank me later
Luke Johnson
perl is great. OP should check out "minimal perl for linux and unix people"
Hudson Foster
nice reddit meme
Jace Rogers
>linux >unix fuck off retard
Blake Myers
>set -euo pipefail
Also use shellcheck. Makes this shit a ton easier.
Michael Davis
>set -euo pipefail This is cancer, stop spreading it. Shellcheck however is godlike.
Jordan Lewis
>minimal perl for linux and unix people sounds good, I'll check it out
the syntax is ASS & the logic make no sense I can pipe in powershell and do a foreach loop with a | %{ $_ } and place my variable any where I want to pass the pipe. I can do the same in perl
I was lazy and I didn't want to import os then externally call the commands I needed, but I'll say fuck it next time use and use python
Daniel Bell
Bash is pretty bad and yet I love it.
Eli Wright
bash -x
Dumbass.
Austin Rodriguez
>shellcheck thank you anons I needed this
Jaxon Williams
git gud
Zachary Green
>calling anyone a dumbass >tripcoding
Jose Barnes
more than 10 lines just do it in python
Leo Garcia
Nah. Bash only gets tedious to use once you hit 500 and painful after 1000 lines.
Adrian Kelly
Bash syntax is fucking stupid
I do a lot of PowerShell scripting at work (forced to) and I enjoy it way more.
Jackson Gomez
learning bash is pain faggot. people learn it till all their life.
Tyler Mitchell
bash -x myscript
Elijah Bell
sometimes i would open a bash script i wrote years ago and wonder HOLY SHIT I WAS SO SMART WHAT HAPPENED.