Hacker News new | ask | show | jobs
by moebrowne 138 days ago
I believe that Bash scripts should be trivially short and simple. As soon as any complexity is introduced they should be written in another language.
2 comments

Perl was written to write more complicated bash scripts. It's so seamless to call and handle shell commands and the first class regexes make it terse in a way that's appropriate for this use case.
I agree, the moment bash script needs "if" statement, you are using wrong language.
Is that so? Sounds like this commandment has a lot of authority, I'd better start following it.
You’re free to program in language with only one data type all you want!
Tcl is great
Unironically, tcl is great as an upgrade from shell.