Current status: implementing read-write locks in bash.

Regretting my life choices right now.

@siguza I don't kink shame, I swear, but... are you a masochist?
also, you will hate me but I asked Claude and it had a pretty decent looking answer :P
@madcoder imagine being born only to solve this
@madcoder yeah I trust that like I trust Time Machine not to delete my backup history.
@madcoder problem is, I don't have much of a choice... these are some scripts that I run both locally on macOS and as cronjobs on my server. I thought about rewriting them in a serious language before, but then I'd need a compile-and-deploy step on git push... which I could do, but then that just introduces an additional locking requirement at the deployment level, so I'm right back where I started.