Setting default values for environment variables

Paulo Moura pmoura at
Sun Dec 24 08:49:12 PST 2006


I'm looking for the best way to mimic on MacOS X a Linux handy  
feature for setting the default values (system-wide, for all users)  
for  environment variables. In Linux, I need just to create *.sh and  
*.csh files with the environment variable definition on the /etc/ 
profile.d/ directory. I need similar functionality for a postflight  
script for a MacPorts package (or for the post-destroot phase). Your  
suggestions are most welcome.



Paulo Jorge Lopes de Moura
Dep. of Computer Science, University of Beira Interior
6201-001 Covilhã, Portugal

Office 4.3  Ext. 3257
Phone: +351 275319891 Fax: +351 275319899
Email: <mailto:pmoura at>

Home page: <>
Research: <>

More information about the macports-users mailing list