[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shell script question



On Fri, 5 Dec 2003, Han Huynh wrote:

> Is there any way to export a variable for one parent shell to a different
> parent shell?  I know that export will work to a subshell, but I can't find
> any process to return a variable to a different parent shell.

I am not sure I understand your question, but I'd suggest you take a
look at the eval built-in function of the shell. I think it is what you
need. The bash advanced scripting guide might be of help to you:

http://www.tldp.org/LDP/abs/html/

Grx HdV





Reply to: