Bad idea
cat /proc/<pid>/environ
cat /proc/<pid>/environ
Other users' processes can't see /proc/$pid/environ, unlike using cmdline.
λ whoami
cjb
λ cat /proc/1/cmdline
/sbin/init%
λ cat /proc/1/environ
cat: /proc/1/environ: Permission deniedUnless the secret is some kind of one-time token, or time based token, but then it's also not relevant how the secret was passed to the process. It's invalidated soon.
Exactly; macOS doesn't use /proc.