Path: utzoo!attcan!uunet!lll-winken!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.unix.wizards Subject: Re: Set parent env with csh script Message-ID: <9331@smoke.BRL.MIL> Date: 10 Jan 89 19:07:18 GMT References: <174@v7fs1.UUCP> <9314@smoke.BRL.MIL> <1291@uwbull.uwbln.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <1291@uwbull.uwbln.UUCP> ckl@uwbln.UUCP (Christoph Kuenkel) writes: >So any variable assignement and/or environment setting is uneffective outside >the while-loop. >Any elegant solution to that? Well, I think we already solved the original problem, but as for the case you bring up, various workarounds are sometimes possible, depending on just what it is you really need to do. Often, one can construct a string in the (non-subprocessed!) loop then use the string with "exec" or some such afterwards.