The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: Modify Path
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-18-2008
msb65 msb65 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 89
Hi Yogesh,

I appreciate your help. Perhaps you can clear up one other path related issue.

- Why modify the .bash_profile instead of the .bashrc?

- Like I said I am using BASH on a Mac running Leopard. For the most part I use Terminal for my command line related work. However, sometimes I use X11 as well. I noticed that when i typed "echo $PATH" in a Terminal shell it returned a different series of directories than when I did the same in an X11 shell. I believe this is because those two programs check different environment files. Is that correct?

A user in a different forum suggested that I modify my .bash_profile and .bashrc files. Can you tell what exactly is going on? Here are the contents:

#####
.bash_profile:
if [ -f ~/.aliases ]; then
. ~/.aliases
fi

ulimit -Ss unlimited
source /Users/msb65/seadas5.2/config/seadas.env
#####

#####
.bashrc:

if [ -f ~/.bash_profile ]; then
. ~/.bash_profile
fi
#####