I'm a bit perplexed how you hit this. By default sudo *does not* pass the environment variables around.
supermario@mlimonciello:~$ export CC=blah supermario@mlimonciello:~$ export | grep CC declare -x CC="blah" supermario@mlimonciello:~$ sudo -s root@mlimonciello:~# export | grep CC root@mlimonciello:~#
I'm a bit perplexed how you hit this. By default sudo *does not* pass the environment variables around.
supermario@ mlimonciello: ~$ export CC=blah mlimonciello: ~$ export | grep CC mlimonciello: ~$ sudo -s lo:~# export | grep CC lo:~#
supermario@
declare -x CC="blah"
supermario@
root@mlimonciel
root@mlimonciel