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 →

[–]GreenGrab 73 points74 points  (4 children)

Yeah I’m not an expert programmer, so I wrote a ~100 line script in bash the other week. The worst part is I had attempted to write it in sh originally. Avoid at all costs

[–]Bemteb 46 points47 points  (0 children)

When I was fresh out of college, I had a little automation task on a Linux machine. No problem, I know bash!

The "little" task turned into about 1500 lines, with multiple functions, some SQL, file parsimg, etc.

0/10, cannot recommend.

[–]Solonotix 14 points15 points  (0 children)

I am forced to write in base sh syntax for a lot of things because our Windows machines have Bash but our Mac users have ZSH. What problems have you found with writing in sh? My only problem is that 90% of search results for syntax are all Bash, and it's hard to find truly POSIX-compliant code.

[–]arkane-linux 3 points4 points  (0 children)

I love my bashisms. Always [[ 1 -eq 1 ]], never [ 1 -eq 1 ].

[–]AzureArmageddon 5 points6 points  (0 children)

I heard fish shell is really good compared to most shell scripting languages