I wish #Linux (and #FreeBSD) had a device /dev/memfd that, when opened, actually...
argv[-1] @argv_minus_one@mastodon.sdf.org
I wish #Linux (and #FreeBSD) had a device /dev/memfd that, when opened, actually gives you a fresh memfd.
Then you could use memfd with shell scripts:
exec 3<>/dev/memfd
echo foo >&3
cat /dev/fd/3
It'd be like using temporary files, except they automatically get deleted when the script terminates, and aren't visible to other processes (so there's no need to securely generate a temporary file name).