in reply to true environment
$ perl -e'%ENV=();exec "sh --noprofile"' $ cat /proc/$$/environ $ export FOO=sausage $ cat /proc/$$/environ $ sh --noprofile $ cat /proc/$$/environ FOO=sausage $ perl -e'%ENV=(BAR => "sausage");exec "sh --noprofile"' sh-2.05b$ cat /proc/$$/environ BAR=sausage
|
|---|