Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need info !!!!!!!!!



On Dec 28, 2004, at 8:48 AM, Justin Walker <email@hidden> wrote:

On Dec 28, 2004, at 4:59, Michael Stillwell wrote:

On Tue, 28 Dec 2004 10:59:50 +0530, Hemanta Pathak
<email@hidden> wrote:

I want to set some user -defined environment variables. To do this, I used the setenv in Jaguar and set in Panther.

.profile should actually work provided sh or bash is your shell. You can also do this via ~/.MacOSX/environment.plist; see


http://developer.apple.com/qa/qa2001/qa1067.html

This doesn't actually work the way you state it. The latter file will work for "Aqua" apps that actually use environment variables (not many do), but not for command line apps that come from the Unix world.


As for ".profile", it doesn't automatically work. Please read the manual page for the shells in question to see what actually happens as the shell starts up.

Isn't there a way to have CLI apps use the Aqua variables? I think I saw once some Perl code that read the Aqua file's variables, so ".profile" or whatever would call the Perl program to gain a copy of the variables. The code didn't work for me. I hope someone out there can come up with better code.


--
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.