Hi!

----

Running the following testcase...
-- snip --
typeset -T x_t=(
        integer dummy
        function calculate
        {
                typeset str=$1
                
                (
                        {
                                printf 'export 
PATH="/usr/${RANDOM}/$$/${RANDOM}/foo\n" ; '
                                printf 'set -o restricted ; printf "%s == %g" 
"%s" $(( %s ))' "$str" "$str"
                        } | source /dev/stdin
                )
        }
        
        function cal1_1
        {
                _.calculate "1+1"
        }
)

function main
{
        x_t x

        x.cal1_1
}

main
-- snip --
... with ast-ksh.2012-06-28 triggers a "PATH: restricted" error:
-- snip --
$ ksh x.sh
1+1 == 2x.sh[30]: main[27]: x.cal1_1[19]: _.calculate: line 7: PATH: restricted
-- snip --

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to