News for hackers. Stuff that matters.
Re:Shell Script Best Practices, from a decade of scripting t... by Octabrain on Thursday October 27, 2022 @05:25AM (#33355206)
Subjetive, indeed. But unless I am missing something, the interpreter to be used should be determined by the shebang within the script though?
Re:Shell Script Best Practices, from a decade of scripting t... by selectnull on Thursday October 27, 2022 @05:47AM (#33355353)
Extension or not, .sh or .bash: definitely subjective.

That was the intention of my comment. Because the rest of the post (or most of it for sure) is not subjective.

Re:Shell Script Best Practices, from a decade of scripting t... by erlkonig on Thursday October 27, 2022 @07:08AM (#33355862)
It's the effect of the extension on USER behavior that's the problem, the OS doesn't care.
Re:Shell Script Best Practices, from a decade of scripting t... by Octabrain on Thursday October 27, 2022 @07:45AM (#33356135)
Yes, I get it. But in my case I simply give u+x permissions to the script and then run "./script.sh" and then the script will be executed with the interpreter defined in the shebang.