LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2003, 11:20 AM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Rep: Reputation: 30
.bash_profile problem


newbie question...a problem with the terminal in Gnome.
part of my .bash_profile looks like this:

PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
CVSROOT=server:root@nmsu.edu:/usr/local/cvs-rep/

export CVSROOT USERNAME BASH_ENV PATH

I added the CVSROOT stuff
When I do a echo $CVSROOT, though, I get nothing.
I know its running the file because i set an alias elsewhere that works.

What am i doing wrong?

(Red Hat 8.0)

Thanks!
 
Old 03-25-2003, 11:23 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
brute force method is to run 'source ~/.bashrc' to re-read the configs.

I'm sure there's a more elegant way but I've never bothered looking.
 
Old 03-25-2003, 11:36 AM   #3
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Is there a 'smiley, colon and then open bracket' in the CVSROOT setting line. An open bracket will probably cause problems. Or, was the smiley put in there by accident when you entered the post.

try this in a console
export CVSROOT=server:root@nmsu.edu:/usr/local/cvs-rep/
then env |grep CVSROOT

if not, try
export CVSROOT="server:root@nmsu.edu:/usr/local/cvs-rep/"
env |grep CVCSROOT

Both of the above work on my machine.

You can also just add the complete export to the bash_profile instead of
set, then export.

Also, instead of spawning a new console each time to test the bash_profile, you can
source .bash_profile

Hopefully, something in the above will help.

RO
 
Old 03-25-2003, 11:38 AM   #4
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Original Poster
Rep: Reputation: 30
sorry ,it turn the colon into a smiley
 
Old 03-25-2003, 09:01 PM   #5
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
brute force method is to run 'source ~/.bashrc' to re-read the configs.

I'm sure there's a more elegant way but I've never bothered looking.
Is this the brute force method, or is running 'bash', or are the two equiveland?
I always wondered...for me running 'bash' was usually enough, though.
 
Old 03-25-2003, 10:27 PM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Honestly I forget... In SuSE if you run 'source /etc/profile' it would load system-wide defaults and then read your ~/.bashrc as well.

Runnnig bash will probably do the same thing <shrug>
 
Old 03-25-2003, 11:14 PM   #7
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
Each time you execute bash, you start another shell. This would mean, if you run bash 8 times in a single console, then you have one active and 8 nested bash shells running. It would take 8 'exit' to get back to the origional shell. Is that a problem, usually not, but wanted you to know. Executing 'source .<filename>' refreshes the settings per the file within the current shell.

RO
 
Old 03-26-2003, 07:30 AM   #8
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
thanks RolledOat, that makes sense. And pstree seems to say that too.

*sees the light*
 
Old 03-26-2003, 11:24 AM   #9
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: SuSE 9.2 Professional, OpenSuSE 10.1 64 bit, Open SuSE 10.2, Debian Etch
Posts: 535

Original Poster
Rep: Reputation: 30
Thanks for the help and discussion
 
  


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
.bash_profile dimi Linux - General 1 08-23-2005 09:00 PM
where is ~/.bash_profile? Jskill007 Slackware 4 09-18-2004 12:04 AM
.bash_profile wildcat22 Linux - General 3 04-13-2004 08:08 PM
.bash_profile sikandar Linux - Software 9 08-31-2003 11:01 AM
.bash_profile Wasim Haider Linux - General 2 09-16-2002 08:12 AM


All times are GMT -5. The time now is 04:19 AM.

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