djennings wrote:Maybe a silly question, but is ~/.bash_profile executable
I have just checked two of my Mageia 2 installations, incidentally, both started life as Cauldron Beta2 (or was it 3) back in the day, and none of them has the execute bit set on .bash_profile. Nevertheless, the one I am using now does indeed have the $HOME/bin definition added to the PATH variable.
But that started me thinking. I read somewhere, probably in the bash man page, that you don't need the execute bit to be set if the contents of the file is "absorbed" somehow by some other script which is executing. I don't recall the technical term but I remember wondering at the time if might be something akin to an included file. Anyway, that must be what is going on here because none of the .bash_profile files is executable - not even the one on a Mandriva 2010 box.
I was hoping that someone might know how the ~/.bash_profile is run - surely something needs to "call" it or "include" it?
PS. And yes, I own them all (cackle, fiendish cackle, megalomaniacal guffaw)
Richard