8
Elendil
6h

I hate bash scripting so much !
What a shit language, its inconsistent af
Its just a pile of hacks upon hacks upon hacks. Theres no rime or reason to bash expansion, or to working with arrays.
Sometimes "$@" is a list, sometimes its not... Because fuck u thats why

So im doing a coding project at work, that has to be in bash for reasons.
It already feels like giving birth, llms are hard-carrying me and im not proud of it

And every time i think im done, and i can close this fucking epic, some issue pops up that necessitates a re-write
3rd one is also a no go apparently

And this all happened because *someone* in another department couldn't be fucked to implement the proper solution for this.
The scope of this piece of shit script keeps growing, because every month they be like

"oh this feature of service xyz ? Nah turns out we cant do that sowwy. But you can implement a workaround in bash right??

If you truly like bash as a language, you're cooked brother. you need to seek professional help :skull:

Comments
  • 2
    I would rebel and write it in python and call that from bash.
  • 1
    Don't write legacy code for starters... I.E. $@

    I for one love bash. My fav language, followed by java and go. But bash is such a cool beast that it's been my #1 for years.
  • 0
    Aaand bash does not have lists. It has arrays though. V4+ bash also has associative arrays [smth like maps]
  • 0
    I strangely like bash but I can't explain why

    it's somehow charming on me when I find all the weirdnesses in it
Add Comment