Set parent env with csh script

Richard Childers childers at avsd.UUCP
Fri Jan 13 12:14:32 AEST 1989


In article <174 at v7fs1.UUCP> mvp at v7fs1.UUCP (Mike Van Pelt) writes:

>Is it possible for a subshell to changes the calling shell's 
>environment?  How?

I don't think it's possible for this to happen.

Your subject line suggests that you've done a fair amount of browsing. Thus,
you know what the terms 'parent' and 'child' refer to.

As far as I know, while a 'child' can inherit a 'parent' environment, there
is no official path for doing the opposite.

There may well be an unofficial path, something involving breaking through
the protections imposed by UNIX ... but it would be much simpler to make an
alias, seeing as you're working with a csh, wouldn't it ?

>I would like to electrocute everyone who uses the    | Mike Van Pelt
>word 'fair' in connection with income tax policies.  | Video 7                 
>           -- William F. Buckley                     | ...ames!vsi1!v7fs1!mvp

-- richard

-- 
 *             "I haven't lost my mind ... it's backed up on tape."           *
 *                            ( Pete Da Silva )                               *
 *      ..{amdahl|decwrl|octopus|pyramid|ucbvax}!avsd.UUCP!childers at tycho     *
 *          AMPEX Corporation - Audio-Visual Systems Division, R & D          *



More information about the Comp.unix.wizards mailing list