News for hackers. Stuff that matters.
Re:Show HN: A fix for the .bash_profile .bashrc .profile mad... by pyre on Saturday August 11, 2012 @11:41AM (#4370288)
The other thing not being mentioned is that sometimes logging into GNOME will source .profile or .bash_profile (I forget which). This can be used to make sure that environment variables are set at the top-level (to be inherited by all sub-processes of the GNOME environment). Mostly this is useful for things like $PATH (which programs like gmrun make use of).
Re:Show HN: A fix for the .bash_profile .bashrc .profile mad... by sciurus on Saturday August 11, 2012 @12:56PM (#4370454)
Yes, this is standard and useful behaviour. When I started using OS X, it really confused me that 1) it didn't source .profile on login 2) it sourced .profile (instead of .bashrc) whenever I opened a new terminal.
Re:Show HN: A fix for the .bash_profile .bashrc .profile mad... by graywh on Saturday August 11, 2012 @05:52PM (#4371087)
Yeah, many terminal emulators (like Terminal.app) are configured to run login shells.