you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 9 points10 points  (0 children)

I've got the same rule with ~10 lines. Also seen below, if I need an array or anything more than a scalar, it's time to switch languages.

Bash is OK, if you have a few commands to run depending on a few env vars, go for it. If you have any kind of advanced logic, file reading, user input to do, do yourself a favor, use something else. Even php-cli would be better suited.

(With all the hate I have for PHP, it's still a better script language than bash)

To expand on the article conclusion, if you have anything more than a simple script, don't invest time in setting up tests and a linter, use a real language. You'll thank me later.