Xref: utzoo comp.emacs:8737 gnu.emacs:3323 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!lanl!nmsu!opus!mleisher From: mleisher@nmsu.edu (Mark Leisher) Newsgroups: comp.emacs,gnu.emacs Subject: Re: how does one getenv a particular process? Message-ID: Date: 21 Jul 90 16:22:09 GMT References: <281@crcaus.cactus.org> Sender: news@NMSU.edu Followup-To: comp.emacs Organization: NMSU Computer Science Lines: 18 In-reply-to: jbw@zeb.uswest.com's message of 21 Jul 90 02:38:23 GMT When Gemacs starts a process, it runs a program called 'env'. This creates an environment for the process and executes the process program. The code for 'env' is in the etc/ subdirectory of the gemacs source code and 'shell.el' is in the lisp/ subdirectory. I would think that if you wanted the value of an environment varible in the processes environment, you would either have to make the program being run return the value, or, if you can't modifiy the program, you might want to do something like write a short program that returns the value of the environment variable and executes the actual program you want to run. -- ----------------------------------------------------------------------------- mleisher@nmsu.edu "I laughed. Mark Leisher I cried. Computing Research Lab I fell down. New Mexico State University It changed my life." Las Cruces, NM - Rich [Cowboy Feng's Space Bar and Grille]