Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!husc6!seismo!vrdxhq!dgis!bms-at!stuart From: stuart@bms-at.UUCP Newsgroups: comp.unix.questions Subject: Re: The environment of the parent Message-ID: <276@bms-at.UUCP> Date: Fri, 21-Nov-86 15:08:42 EST Article-I.D.: bms-at.276 Posted: Fri Nov 21 15:08:42 1986 Date-Received: Sun, 23-Nov-86 04:09:55 EST References: <261@mipos3.UUCP> Distribution: net Organization: Business Management Systems, Inc., Fairfax, VA Lines: 24 Summary: Impossible. In article <261@mipos3.UUCP>, pinkas@mipos3.UUCP (Israel Pinkas) writes: > he would like to place the typed-in values in the parents environment > Any pointers as to how to get at, and set, the parent's environment would > be helpful. In *nix, you have to *be* the parent. Other methods involve cooperation with the parent. You could make your command a shell alias which would 'eval' the output of your program: chkenv() { # SysV sh eval `chkenv.prog` } 'chkenv.prog' should output something like: VAR1=abc; VAR2=def; export VAR1 VAR2 'csh' users need their own special syntax. -- Stuart D. Gathman <..!seismo!{vrdxhq|dgis}!bms-at!stuart>