News for hackers. Stuff that matters.
Re:Bash 5.2 by kaba0 on Tuesday September 27, 2022 @01:50PM (#32998690)
It’s not the compatibility which is the problem, but the 3 bugs/line that bash causes.
Re:Bash 5.2 by Alupis on Tuesday September 27, 2022 @02:39PM (#32999308)
If you cannot take the time to learn the language, what makes you so confident your python doesn't also have 3 bugs per line as well?
Re:Bash 5.2 by kaba0 on Tuesday September 27, 2022 @03:22PM (#32999880)
Did you run shellcheck on it, to actually recognize all the errors, before you assumed it is correct?
Re:Bash 5.2 by Alupis on Tuesday September 27, 2022 @04:22PM (#33000628)
Writing bash scripts is really not that difficult - despite what folks might want to convince you of.

ShellCheck is a great tool, yes, and can be run natively inside your IDE. Just like any language, you need to learn the language and learn it's tools.

Blanket statements like "write all your scripts in python because there's less bugs" really just means the commenter is more familiar with python. Do enough script writing and you'll realize how absurd that statement is.

It's a lot like the folks that scream nobody should ever write a single line of C or C++ because it's "dangerous" - yet untold number of lines of C/C++ are written every day. A pencil can be dangerous in the wrong hands...

Re:Bash 5.2 by Arnavion on Tuesday September 27, 2022 @05:51PM (#33001582)
Yes I did. And I hope you ran mypy on yours.

BTW both shellcheck and mypy are equally optional, so I'm not sure what your high horse is about.

Re:Bash 5.2 by BiteCode_dev on Tuesday September 27, 2022 @03:11PM (#32999761)
Well I use both extensively, and I'm very confident that I can write a script of 1000 lines with much less bug and much better error handling that in bash, in half the time it would take me.

In fact, as soon as you need to use arrays, it's game over.

Re:Bash 5.2 by RealAlexClay on Tuesday September 27, 2022 @03:28PM (#32999960)
1000 lines in python is a bash oneliner and planning for failure is bad design.

>In fact, as soon as you need to use arrays, it's game over.

Why?

PS. comfortable with both. I don't draw lines based on LOC or arrays.