LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2006, 09:21 PM   #1
irhernan
LQ Newbie
 
Registered: May 2006
Location: Philippines
Distribution: RedHat
Posts: 7

Rep: Reputation: 0
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
 
Old 06-28-2006, 09:32 PM   #2
glimmy
Member
 
Registered: Apr 2005
Location: Minnesota
Distribution: slackware
Posts: 54

Rep: Reputation: 15
when you declare variables in bash, you can't put spaces around the =.
 
Old 06-28-2006, 09:48 PM   #3
irhernan
LQ Newbie
 
Registered: May 2006
Location: Philippines
Distribution: RedHat
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.bitchxrc and .bash_profile problem dave`2005 Linux - Software 2 05-23-2006 09:41 PM
Editing .bash_profile oookiezooo Linux - Newbie 2 01-27-2006 12:15 PM
Updating RHEL 3ES apolinsky Linux - Enterprise 3 12-31-2004 09:07 AM
Problems with editing proxy configurations in .bash_profile ricguitar Linux - Networking 1 07-27-2004 06:56 AM
.bash_profile problem allelopath Linux - Software 8 03-26-2003 11:24 AM


All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration