Path: utzoo!utgpu!watmath!clyde!att!osu-cis!killer!ames!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!island!daniel From: daniel@island.uu.net (Dan "yes that is my real name" Smith) Newsgroups: comp.unix.wizards Subject: Re: Set parent env with csh script Summary: dont invoke another shell, source it... Message-ID: <544@island.uu.net> Date: 9 Jan 89 18:49:31 GMT References: <174@v7fs1.UUCP> Reply-To: daniel@island.uu.net (Dan "yes that is my real name" Smith) Organization: Island Graphics, Marin County, California Lines: 16 In article <174@v7fs1.UUCP> mvp@v7fs1.UUCP (Mike Van Pelt) writes: >I would like to write a shell script (csh preferred) that will >set a few environment variables to various things. Of course, >just doing setenv foo bar in the script only works for that >subshell and its children, not for the calling shell. Source the script instead of running it. That way, any environment variables (and csh variables) that the script changes will be seen in the shell you "sourced" from. dan -- /na/usa/ca/marin/SanRafael/94903/4000CivicCtrDr/IslandGraphics/DanSmith daniel@island.uu.net unicom!daniel@pacbell.com {lll-crg,apple}!well!dansmith ph: +1 415 332 FAST(h) 491 1000(w) 491 0402(Fax) d: Island's coffee is laced my mind likes unix, my hands guitar, my stomach pizza, and my feet skis