LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   variables in bash_profile hid from me (https://www.linuxquestions.org/questions/linux-newbie-8/variables-in-bash_profile-hid-from-me-665173/)

Junior_DBA 08-25-2008 02:58 AM

variables in bash_profile hid from me
 
Hi guys! Nice to see you in my thread. I have a confused situation. I have variables in .bash_profile of the user MegaNewbie. After loggin in:

echo $ORACLE_HOME
--nothing--


my bash_profile:

ORACLE_HOME=/oracle/10.2.0; export ORACLE_HOME



what's wrong?

jschiwal 08-25-2008 03:39 AM

Did you export the variables? Exporting moves the variables from normal variable space to environment space.

Linux/Unix usernames are usually lower case by convention. Check your /etc/login.defs file for the CHARACTER_CLASS definition.

Junior_DBA 08-25-2008 04:00 AM

Quote:

Originally Posted by jschiwal (Post 3258721)
Did you export the variables? Exporting moves the variables from normal variable space to environment space.

Linux/Unix usernames are usually lower case by convention. Check your /etc/login.defs file for the CHARACTER_CLASS definition.

I exported them in .bush_profile, should I export them somehow else?

jschiwal 08-25-2008 05:53 AM

Yes, you use export in the ~/.bash_profile file.

Are you the user "MegaNewbie"? Could you post your ~/.bash_profile file?
Is bash your default shell?


All times are GMT -5. The time now is 01:52 AM.