Xanh wrote: > How do I export a change to an environment variable made in a C program? > $>export MyTest="Current Value" > $>./testenv > current value: Current Value > new value: New value here > $>echo $MyTest > Current Value > > The old value is retained.
As designed. If any child program could alter the values of the environment setting in their parent process, chaos could ensue. Imagine for a moment that I convince you to play my game called "rogue"--and then change your session so that your path is altered to find different commands. Try "man sh", then search for "eval" within the man page. Alan _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list