If I append this:
hi=11
export hi
to the .bashrc and then I su to this user with:
su - bela
then I:
echo $hi
11
Then it's working, the "hi" variable has the value of "11". But. When I:
su -c "echo $hi" bela
the variable "hi" has no value. Why?
(running on CentOS 6)