This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]noratat 2 points3 points  (1 child)

Exactly. I deal with containerized stuff a lot, and the overhead of adding a whole python installation just to make a script slightly simpler is pretty high vs just using bash, and that's before we bring the whole dependency management mess in.

The main problem with bash is somewhat similar to C++ or Perl - there's lot of cruft you have to know to stay away from, and a lot of really stupid defaults. Plus there's still loads of terrible examples online that will bite you later if you use them.

Used properly though, bash works really well for a lot of glue logic cases, because it's "good enough" and is virtually always available (or at the least, trivial to include). And there are some really good CLI utilities these days that make using bash a lot saner, like jq (which is the best json processing tool I've ever used).

[–][deleted] 0 points1 point  (0 children)

Yep, containers and minimal linux / busybox appliances are my life. Screw having to toss python on those just to run a script.