[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PATH confusion in BASH



Rodrigo Agerri wrote:

Kent West wrote:
In /etc/profile are these statements (they're the only path-related statements in this file):

PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
export PATH
I do not have a ~/.bash_login nor a ~/.profile. There are no path-related statements in my ~/.bashrc, and the only path-related statements in my ~/.bash_profile are these:

# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
  PATH=~/bin:"${PATH}"
fi
(Interestingly, I don't see an "export PATH".)

Did you look at /etc/bash.bashrc?
westk[@westkent]:/home/westk:> cat /etc/bash.bashrc
# System-wide .bashrc file for interactive bash(1) shells.

# If running interactively, then:
if [ "$PS1" ]; then

   # set a fancy prompt (overwrite the one in /etc/profile)
   PS1='\u@\h:\w\$ '

   # check the window size after each command and, if necessary,
   # update the values of LINES and COLUMNS.
   shopt -s checkwinsize

   # enable bash completion in interactive shells
   #if [ -f /etc/bash_completion ]; then
   #    . /etc/bash_completion
   #fi
fi




Reply to: