Leonid wrote:
Does anybody know a way to set shell environment variable from user application? Simple setenv() call does the trick, but value disappears as soon as application quits.
I'd be happy to be proven wrong, but AFAIK it can't be done - a child process cannot modify the environment of its parent (the shell in this case). It would be a security nightmare for starters.
BTW this is why the petalinux settings.sh script has to be sourced, and not executed, because we need to set the PETALINUX environment variable.
What are you tryiung to achieve? Chances are there's a better way Regards, John ___________________________ microblaze-uclinux mailing list microblaze-uclinux@xxxxxxxxxxxxxx Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/