Mailing List Archive


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

Re: [tlug] Bashing away at Unix



Nguyen Vu Hung writes:

 > > No.  Any Posix compliant shell will read .profile under certain conditions.

 > For RHEL 4, bash 3.2 doesn't check $HOME/.profile
 > # Though it does read /etc/profile.d/* becasue /etc/bashrc tells it to do so
 > 
 > You can verify whether your bash read .profile by running

(Aside: you don't want to argue sh with a man who once wrote a BASIC
interpreter in that language, and retained a shred of sanity.)

Note the "under certain conditions".  For example, if as root you do

ln -s /bin/bash ~/sh
~/sh

I'll bet you bash reads .profile, and you can verify it with strace,
too.




Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links