logoalt Hacker News

yjftsjthsd-h04/02/20251 replyview on HN

I would worry less about other people being able to run rc scripts and more about them being able to read/edit them.


Replies

packetlost04/02/2025

they're routinely very short, and the only non-obvious syntax for someone familiar with a C-like language is the ~ command and redirecting to stderr. They're pretty much always easier to read (and write) than bash scripts in general because of how little weird/surprising syntax there is. Not being a derivative of ALGOL has its perks.

Most scripts are write-once:read-never, especially if you actually implement -h/--help

show 1 reply