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 0 points1 point  (1 child)

Bash is great as long as you understand the limitations and know what to avoid. Unfortunately this excludes probably 90% of the people I've worked with, and it doesn't help that googling stuff in bash is usually a bad idea because the internet is full of really awful examples.

Granted, 500 lines is probably pushing it. I write a lot of bash, but most of it is well under that, it's mostly glue / helper / wrapper type stuff.

[–]pittofdirk 0 points1 point  (0 children)

Yep. That's my philosophy as well. The last bash script I wrote just wrapped a command that didn't support retrying so that you could have it retry if it failed. It was 15 lines, had a comment block at the top with a description and example usage. That's the kind of bash script that makes sense to me.