Re:Safe ways to do things in bash
by occams_chainsaw on Monday May 14, 2018 @09:21PM
(#17070855)
At that point, you care enough to put it under source control, and it shouldn't be a shell script. That's the entire point of the comment you replied to
[ Parent
| on HN ]
And that's a stupid heuristic. Simple bash scripts can be critical to a processing pipeline while still being the best tool for the job.
Re:Safe ways to do things in bash
by JauntyHatAngle on Monday May 14, 2018 @10:52PM
(#17071273)
It's that arbitrary distinction that I am responding to. I don't agree that you should reserve source control for the complex.
A shell script can be the appropriate tool for many important tasks.
I agree that simpler scripts deserve to be in source control too. I read it to mean what I also would say, myself: if it's anything but the most trivial of scripts (so, rather _programs_), they shouldn't be in BASH. Some people in this discussion are clearly very well versed in BASH. Great. For average developers, though, it's hard to build (good) programs in BASH, and the rabbit hole swallows them. Every time.