Hacker News new | ask | show | jobs
by SurfingAlpaca 26 days ago
The opening comment is an essay which no one writing shell scripts has the patience to do. So many things like euo pipefail are so “production ready”. The most dead giveaway imo is test cases (and a brag comment about how many test cases which is something AI loooves to do). No one writing a throwaway joke script would ever do this much production readiness. Plus the readme and website are so flashy and verbose
2 comments

Hot take, but given how bash scripting has always been kind of an awful experience, with a myriad of footguns to protect against and lots of magic syntax to memorize, I can't imagine why I'd ever write a non-trivial shell script by hand nowadays. Yes, I'd read over it and clean up the obvious cruft, and I'd of course run shellcheck on it (and force the LLM to fix any issues without adding exceptions), but at this point writing shell scripts at all requires more patience than I can muster.

Locally, I don't even run a bash-compatible shell as my default anymore because it's just too annoying. I can tolerate writing nushell scripts with much more patience than I ever was able to even in the days I would tinker with my zsh config daily.

Though I'm suprised to see:

    USAGE_LOG="$STATE_DIR/usage.csv"
instead of

    USAGE_LOG="${STATE_DIR}/usage.csv"
which would make it even more "production ready".