LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-06-2004, 02:11 PM   #1
lemay_jeff
Member
 
Registered: Mar 2004
Posts: 40

Rep: Reputation: 15
Editiing my PATH for a bash shell???


Hello all......I'm trying to add this mvl-update packages script to my bash shell like in the instructions, and I think I'm doing it wrong....could anyone help me out with this? I simply followed the directions below, but it doesn't appear to be working.....I added this line to /etc/bashrc:

PATH=$PATH:/opt/montavista/cge/host/bin

Should this be enough? what am I missing? thanks!

Set your PATH to include mvl-rpm. By default, mvl-rpm is located in /opt/montavista/cge/host/bin. To update your PATH for a bash shell, complete the following steps:
Add the new path to the shell initialization script (for instance, /etc/bashrc).

PATH=$PATH:/opt/montavista/cge/host/bin
 
Old 07-06-2004, 02:22 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
You'll need one other step to finish things. Bas does not re-read the configuration files unless it needs to or you explicitly tell it to.

If you use a GUI like Gnome or KFE, then you'll probably have to log out, and then log back in for the changes to be completely incorporated.

If you just want to get something going "right now", then type source /etc/bashrc at a command line. Your path will be updated for that shell only. You'll need to do the logout/login thing above to flush the change to every shell you start in the future.

If that doesn't work, then there's something fubar'd in how the configuration files are set up.
 
Old 07-06-2004, 02:22 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
In order for bash to pick up the changes you have to start a new shell so logout and log back in.

<EDIT>
Dark_Helmet beat me to this one.
 
Old 07-06-2004, 02:45 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Hehehe... If I beat you to it, it probably has something to do with the fact I can't spell and left off "extraneous" characters. You know, I've always felt the 'h' in 'Bash' was completely unnecessary
 
  


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
Path issue in Bash gd2shoe Linux - Software 2 08-28-2005 10:18 PM
C shell and env $PATH vikinnun Programming 1 11-10-2004 09:02 PM
BASH search path problem neilcpp Programming 4 02-07-2004 02:04 PM
java path in bash matador Mandriva 2 12-03-2003 08:51 AM
shell, path and user marek Linux - Newbie 2 09-02-2003 06:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 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
Open Source Consulting | Domain Registration