Comment by stevage
I don't understand this bit either, unless "proper" means Bash. Because no one should ever write Bash under any circumstances.
I don't understand this bit either, unless "proper" means Bash. Because no one should ever write Bash under any circumstances.
Heh, honestly I'm kind of touched that you went to that effort.
Obviously I was using hyperbole. But I can say for sure that my life as a developer and second-rate sysadmin improved when I adopted as policy that I would never ever write any Bash script. Not even for a supposed one-liner, since I could just write that in ZX and avoid any temptation to write (and badly maintain) a Bash script.
import { $ } from 'zx'
await $`echo my one liner`
[flagged]