I got an error in a script which I was boiled down to this:

------------------------------------------------
#!/usr/bin/ksh
set -x

typeset -T A_t=(
    typeset x=aha
)

typeset -T Tst_t=(
    function f
    {
        A_t a
        print ${ _.g ${a.x}; }  # line 12
    }

    function g
    {
        print foo
    }
)

Tst_t tst
tst.f
------------------------------------------------

The output is:

+ .sh.type.A_t.x=aha
+ typeset .sh.type.A_t.x
+ typeset -T A_t
+ typeset -T Tst_t
+ Tst_t tst
+ tst.f
t[22]: tst.f: line 12: tst: is not an element of a

Some variants which do not cause an error:

1. Define g outside Tst_t.
2. Define f as f().

Regards,
Bernd

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

Reply via email to