On 25.04.2011 13:45, Roland Mainz wrote:

While developing an application we hit a couple of problems with
"typeset -m" (=move/rename variable). The basic idea is to create a
variable locally and only move it into the (compound) variable array
of the caller if certain conditions are met.
The following testcase shows the problem:
-- snip --

function add_eval
{
        nameref pos=$1
        source /dev/stdin<<<"$2"
        typeset -m pos=addvar
        return 0
}

The main problem appears to be that "nameref pos=$1" doesn't work. It simply does nothing. IIRC it used to work in the past.

Regards,
Bernd

--
http://sudrala.de
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to