News for hackers. Stuff that matters.
Re:Use Long Options in Scripts by Timon3 on Saturday March 22, 2025 @12:57PM (#43447061)
Oh god, it even says right there:

> Warning: this utility is fake.

Well played! I guess I got too excited at the possibility of such a tool existing.

Re:Use Long Options in Scripts by OJFord on Saturday March 22, 2025 @02:08PM (#43447490)
Such a tool does exist, it's called shellcheck. If you give /bin/sh shebang for example it will tell you off using non-POSIX features regardless of whether they'll work with the sh on your system.

(Personally I typically use bash though, largely so I can `set -eEuo pipefail` next.)

Re:Use Long Options in Scripts by apgwoz on Saturday March 22, 2025 @04:38PM (#43448436)
The thought is very compelling! shellcheck is pretty great, but of course isn’t this complete. It definitely can’t reticulate splines, for instance.