Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!cmcl2!brl-adm!adm!franco@MIKEY.BBN.COM From: franco@MIKEY.BBN.COM (Frank A. Lonigro) Newsgroups: comp.unix.wizards Subject: Re: Adding to Environment Pointers Message-ID: <7907@brl-adm.ARPA> Date: Thu, 18-Jun-87 10:22:39 EDT Article-I.D.: brl-adm.7907 Posted: Thu Jun 18 10:22:39 1987 Date-Received: Sun, 21-Jun-87 16:38:45 EDT Sender: news@brl-adm.ARPA Lines: 14 Dennis: I did a similar thing for a customized 'su' program. This new 'su' program not only changed existing shell variables but added new ones as well before exec'ing the shell. What I did was to steal that part of the code that creates shell variables from the 'csh' source code. If you don't have access to source code then I would suggest learning how to manipulate the 'environ' variable which is defined as 'extern char **environ'. The documentation should explain how to at least get access to environmental variables and should get you on your way. CSNET: franco%bbn.com@relay.cs.net UUCP: Through harvard.