LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bash shell (https://www.linuxquestions.org/questions/linux-newbie-8/bash-shell-799352/)

_Linux_Learner 04-01-2010 07:17 AM

bash shell
 
Hi all

I created a environment variable as follow....
Code:

export LFS=/mnt/lfs
Why does...
Code:

echo $LFS
display the value of LFS variable in the non login shell in which this file is not read ????

grail 04-01-2010 07:33 AM

Umm ... I am a little unclear on what your actual questions is here?

Are you saying you ran the two commands in your post one after the other?

catkin 04-01-2010 07:39 AM

If you mean the export is in /etc/profile then ... the non-login interactive shells are descendants of the login shell started when you logged in (or were auto-logged in) and thus inherit the envars set by the login shell. pstree should so show the descendancy.


All times are GMT -5. The time now is 10:26 PM.