On Apr 10, 2014, at 1:52 PM, Colas B <colasj...@yahoo.fr> wrote: > Your idea sounds good. What can I do if I want both shells invoked from > programs and login shells to have the same initialization script?
I think it’s better to make sure your login-shell setup script (.bash_profile or .login) doesn’t have things in it that are needed for non-interactive shells. It should really only do stuff related to using a shell in a terminal, i.e. customizing the prompt or setting up ANSI colors or whatever. Stuff like setting up your $PATH belongs in the script that’s run by all shells (like .bashrc or .cshrc.) —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com