On 8/20/06, José Alburquerque <[EMAIL PROTECTED]> wrote:
Hi all. I apologize if you get this e-mail twice, mail reader configuration is a little awry! This a general shell (bash) question which I hope someone may be able to answer: I created a "bin" directory in my home directory in which I've placed a few scripts and executables I'd like to be able to execute on demand at a command prompt. In my home directory I also have a ".bash_profie" file which is very short and adds this "~/bin" directory to the path.As I understand it, isn't bash supposed to execute this file when I login? The problem I encounter is that after I log in the "~/bin" directory does not appear in path and I cannot execute commands in ~/bin unless I specify full path. I'm logging in using GDM, which came configured this way when I installed GNOME on etch system. Anyone have any idea why adding ~/bin to path in ~/.bash_profile would not work this way? Below is what my ~/.bash_profile looks like (it also was generated automatically when I created user, but conveniently already "adds" ~/bin to PATH). Thanks for any help. Sincerely Jose Alburquerque ------------------------------------------------------------------------------------------- [EMAIL PROTECTED]:/data/mame-cd/xmame-0.59.2$ more ~/.bash_profile # ~/.bash_profile: executed by bash(1) for login shells. # see /usr/share/doc/bash/examples/startup-files for examples. # the files are located in the bash-doc package. # the default umask is set in /etc/login.defs #umask 022 # include .bashrc if it exists if [ -f ~/.bashrc ]; then . ~/.bashrc fi # set PATH so it includes user's private bin if it exists if [ -d ~/bin ] ; then PATH=~/bin:"${PATH}" fi
I think you may want to put that path stament in .bashrc, which is used for non-login shells (i.e. xterms). Then you could also take it out of .bash_profile, because .bash_profile pulls in .bashrc. Cheers, Kelly

