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.

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to