On 03/05/2013, at 1:40 PM, Jeremy Lavergne wrote:
>> As I understand Unix-like systems, there are three scripts that can
>> operate when you are logging in: .login, .profile and .<shellname>rc.
>> Also, that there is a convention that these scripts should be compatible
>> with the Bourne Shell, or nowadays "bash", the Bourne-again Shell.
>> 
>> When I started with MacPorts about two years ago, I was surprised
>> to find that it put its login-time commands into .profile and there they
>> still are.  In Linux and Unix I would have put such commands in .bashrc
>> or, back in the day, .kshrc.
> 
> This is purely about login-shell versus interactive-shell. Checkout 
> INVOCATION section of `man bash` for the rules.

Thanks, Jeremy.  That is very useful info.  So I think I will leave my stuff
in .profile.

Cheers, Ian W.

_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to