Re: NSTask: program launching another program, potential problem with path: how to do?
Re: NSTask: program launching another program, potential problem with path: how to do?
- Subject: Re: NSTask: program launching another program, potential problem with path: how to do?
- From: Jens Alfke <email@hidden>
- Date: Thu, 10 Apr 2014 14:18:46 -0700
On Apr 10, 2014, at 1:52 PM, Colas B <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden