News for hackers. Stuff that matters.
Re:Shell Scripting with Elixir by vander_elst on Tuesday February 13, 2024 @08:10AM (#39357255)
The more I use bash the more I appreciate it. It has a lot of sharp edges and quirks, but it's coincise, it works basically on all Unix systems and everyone knows (at least a bit of) it.

A lot of attempts to fill this space have large gaps in this aspects. Not sure how this scores on those dimensions.

For up to ~50 lines of script, bash is the most effective thing I found so far. Tried zsh, fish, python, ruby, but for such glue code bash rules.

Re:Shell Scripting with Elixir by mhitza on Tuesday February 13, 2024 @09:06AM (#39357715)
> The more I use bash the more I appreciate it.

That is true for sure if you write bash scripts quasi daily. However if you don't it becomes very easy to forget, at least for me. That's why I'm the type of person that tries to look out for alternatives in different languages.

I've had and read from cover to cover, Bash, sed, and AWK books, yet when I have to get back to them I still only remeber the most fundamental features that I use every couple of days or weeks.

Re:Shell Scripting with Elixir by noisy_boy on Tuesday February 13, 2024 @09:45AM (#39358040)
My rule of thumb for moving from bash to Perl/Python etc is when I need to start implementing multiple arrays and associative arrays to get the job done.
Re:Shell Scripting with Elixir by vander_elst on Tuesday February 13, 2024 @10:55AM (#39358801)
Agree
Re:Shell Scripting with Elixir by SomeoneFromCA on Tuesday February 13, 2024 @10:42AM (#39358626)
I found that browsing through the bash source makes remembering things about how to use bash easier. It is simple enough to see the gears at work, comapared to say python interpreter sources.
Re:Shell Scripting with Elixir by behnamoh on Tuesday February 13, 2024 @09:49AM (#39358079)
don't those quirks and sharp edges leave security holes in the script tho?