• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTask: program launching another program, potential problem with path: how to do?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTask: program launching another program, potential problem with path: how to do? (From: Colas B <email@hidden>)
 >Re: NSTask: program launching another program, potential problem with path: how to do? (From: Keary Suska <email@hidden>)
 >Re: NSTask: program launching another program, potential problem with path: how to do? (From: Jens Alfke <email@hidden>)
 >Re: NSTask: program launching another program, potential problem with path: how to do? (From: Colas B <email@hidden>)

  • Prev by Date: Re: Bindings for dynamically populated menu
  • Next by Date: Re: NSTask: program launching another program, potential problem with path: how to do?
  • Previous by thread: Re: NSTask: program launching another program, potential problem with path: how to do?
  • Next by thread: Re: NSTask: program launching another program, potential problem with path: how to do?
  • Index(es):
    • Date
    • Thread