[Top][All Lists]

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

Re: How to do? Possible?

From: Linda Walsh
Subject: Re: How to do? Possible?
Date: Mon, 25 Jul 2011 10:33:12 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/20100228 Thunderbird/ Mnenhy/

Pierre Gaston wrote:
> Since  you are already using global variables, why not simply use a
> couple more for the return values?
        Because a subshell cannot access the global variables of the

        The only 'hack' I came up with overnight for a quick & dirty, is
to pass back a "blob" along with the 3 return values the function normally
returns, which the parent will 'eval' in the parent context (contain
'export XXX=value' or 'alias xxx=/path' statements.   The purpose of this
was to pre-verify the needed external utilities the script would be using
-- their paths and their existence so the script would be less likely to
fail non-deterministically later on.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]