In the following script, when str.a.get returns, option -x is unset:

---------------------------------------------------------
function f
{
    typeset x y

    set -x
    print start
    x=${str.a}
    print "$x"
    print end
}

__a=foo

str=(typeset a)

function str.a.get
{
    .sh.value=$__a
}

f
---------------------------------------------------------

Output:

+ print start
start
x=foo
foo
end

This appears to happen only within a function. If the f call is replaced
by the function body, the output is as expected.

Regards,
Bernd

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

Reply via email to