On Dec 28, 2004, at 8:48 AM, Justin Walker <email@hidden> wrote:
[snip]
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.
I'm not well-versed in this stuff, but what you would need is a
script/program invoked by your startup shell script to read and parse
the XML file and install the results in your shell's environment.
This is a bit tricky because you want the shell that is reading the
startup script to end up modifying its environment so it (the shell)
can pass the modified environment on to programs it invokes.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Men are from Earth.
| Women are from Earth.
| Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
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