LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem editing .bash_profile on RHEL 3es (https://www.linuxquestions.org/questions/linux-newbie-8/problem-editing-bash_profile-on-rhel-3es-459289/)

irhernan 06-28-2006 08:21 PM

Problem editing .bash_profile on RHEL 3es
 
Hi,

I have some problems editing my .bash_profile.

For example, if I add these lines in my .bash_profile:

ORACLE_HOME = /u01/app/oracle/db_1
export ORACLE_HOME"

after saving and running ". ./.bash_profile"

I get this error:

-bash: ORACLE_HOME: command not found.

Do I miss something?
Please help.
TIA
Regards,
Mike

glimmy 06-28-2006 08:32 PM

when you declare variables in bash, you can't put spaces around the =.

irhernan 06-28-2006 08:48 PM

Hi glimmy,

Thank you very much for your help!
I removed the forward and trailing spaces around the = and now it works fine.

with the best regards,
Mike


All times are GMT -5. The time now is 12:44 AM.