This is the shell's PID:
nathan@guixlaptop ~ $ $$
bash: 10984: command not found
I export an environment variable:
nathan@guixlaptop ~ $ export TESTVAR=test
The variable is not found in the shell's environment:
nathan@guixlaptop ~ $ cat /proc/10984/environ | grep TESTVAR || echo "fail"
fail
How do I make the variable appear in environ?
/proc/PID/environ
? – aviro Jan 10 '22 at 08:02