4 ms·
I'm fluent in bash but I have to say it is the jankiest, messiest language I've ever used. I can't believe another default hasn't totally obliterated it into o
by fracus 2y ago
I'm fluent in bash but I have to say it is the jankiest, messiest language I've ever used. I can't believe another default hasn't totally obliterated it into obsolescence. Maybe because it is so ubiquitous people are afraid of all the work required to move. Wait, that's me.
- BirAdam 2y agoSame. I have started to rewrite my largest scripts in Ruby tho. These are the kind of scripts where performance began to be too rough and issues to ignore.
- cerved 2y agoPeople are always shitting on bash but I like it.
- fracus 2y agoThere is a perverse pride in knowing you tamed that unwieldy beast.
- burnt-resistor 2y agoIt's not hard once you know the rules. shellcheck helps, but it's usually whiny about escaping variable substitution that are intended for outside of the current script such as for editing other files. Its biggest flawed design decision is word splitting by default and Bash's lack of a standard library helper functions for arrays and associative arrays. These could also be implemented as bash native extensions without build-time modification with a user-provided programmatic builtin. I could be wrong, but zsh may be able to add compiled functionality at runtime dynamically as well.
- skydhash 2y agoIt’s a scripting language, not a general purpose one and as such had different design decisions. Next, you’d want a type system and a package manager.
- more_corn 2y agoIf you adhere to good style it’s readable and largely dependable.
- babymetal 2y agoIt's been useful to me for slapping together solutions during ops emergencies. Luckily, I have usually had real programmers around to take the few bits of insight in those scripts to fix their code.