Bash is absolutely wonderful as CLI driver. It's truly an awful scripting language).
And yet, I see many, many projects with huge, enormous shell scripts. It beggars belief.
Bash is absolutely wonderful as CLI driver. It's truly an awful scripting language).
And yet, I see many, many projects with huge, enormous shell scripts. It beggars belief.
Bash is really difficult to write well (if at all) and too many people don't appreciate this. Of course this leads to instability in shell scripts. Offender number 1? Dockerfiles!
Quite simply I don't think you should ever start using shell scripts in your code base in any capacity
Eventually you're going to reach something you just don't want to do in Bash, and suddenly now you've got two scripting languages in your codebase?
Don't think you want that trouble. Start with a scripting language with decent control structures on day 1 and never have to worry about refactoring.