I logines as jady on fedora system.
[jady@fedora ~]$ export AA=heisenbug
[jady@fedora ~]$ echo $AA
heisenbug
[jady@fedora ~]$ su -
Password:
Last login: Tue Jan 14 22:35:16 CST 2014 on pts/0
[root@fedora ~]# echo $AA # after switch the user to another one, even root, the former setting still not work
[root@fedora ~]# exit
logout
[jady@fedora ~]$ echo $AA #back the my jady session, the env setting still works.
heisenbug
[jady@fedora ~]$ su root
Password:
[root@fedora jady]# echo $AA # after switch the user to root, the former setting still works too.
heisenbug
env setting的继承