SHELL environment variable

Ryan Schmidt ryandesign at macports.org
Sat Sep 12 15:20:25 PDT 2009


On Sep 12, 2009, at 17:16, Matthew Cottrell wrote:

> On Sep 12, 2009, at 6:08 PM, Ryan Schmidt wrote:
>
>> On Sep 12, 2009, at 16:05, Matthew Cottrell wrote:
>>
>>> Is it possible to return the SHELL environment variable in a  
>>> Portfile?
>>>
>>> $env(SHELL) does not appear to do it.
>>
>> Not sure.. why do you want to know? :)
>
> I'd like to add some post-activate code to a Portfile that would  
> amend PATH in a .cshrc or .profile, depending on which shell the  
> user is running.

Instead of doing that, just print instructions advising the user what  
to do. It's not customary for ports to modify files in a user's home  
directory.



More information about the macports-dev mailing list