Subshell Variable

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Feb 26 13:11:17 AEST 1989


In article <424 at unicom.UUCP> sayah_k at unicom.UUCP (KIANUSCH... Yes, Kianusch himself !!!) writes:
>Is there a way to exports system-variables from subshell, running in background
>to the main shell?

There's no (simple, portable, supported) way to alter a process's
environment variables from a subprocess.  The best you can do is
to write the information into a pipe, file, FIFO, or some such and
make the parent shell pick up that information.

Without knowing exactly why you want to do this, I cannot give more
specific advice.  It's possible that you're trying to do something
the hard way...



More information about the Comp.unix.questions mailing list