3 ms·
People are always shitting on bash but I like it.
by cerved 2y ago
People 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.