Quote:
Originally Posted by nihonto
Sorry, I don't get the point !
|
I set and export the variable PKG_PATH as user J65nko. That means that all subsequent commands will be able to see, and use the contents of PKG_PATH.
When I
su root I switch user to 'root', but 'root' retains most of my environment, and thus the PKG_PATH variable.
However, a
su - root simulates a full login as root, and discards most of j65nko's environment variables, including the PKG_PATH. That is why echo'ing PKG_PATH produces nothing.