3 ms·
I have seen people write bash scripts with a lot of love and attention trying really hard to pay attention to modern best practices and avoiding known pitfalls
by im3w1l 3y ago
I have seen people write bash scripts with a lot of love and attention trying really hard to pay attention to modern best practices and avoiding known pitfalls and using shellcheck. It still looked like shit imo.
I challenge you to find a single easily readable >100 line bash script and link it here (I do think small scripts can be fine).
- bayindirh 3y agoWhile not completely up to my own standards, this is pretty neat and readable: https://rclone.org/install.sh https://rclone.org/install.sh I may add more if I have time today.
- im3w1l 3y agoMust say I'm pleasantly surprised.
- sanderjd 3y agoYep, my experience of this was at google, where I heard "gbash is actually pretty good!", so I learned that system well (because shell scripts are incredibly useful!), but still found the results unsatisfyingly inscrutable.