> # old style function with an attempt to create a local variable > $ ksh93 -c 'integer x=2 ; foo() { integer x=5 ; } ; print "x=$x" ; foo ; > print "x=$x" ;' > x=2 > x=5
Interesting. When I try that with the Solaris ksh, I get athyra$ ksh -c 'integer x=2 ; foo() { integer x=5 ; } ; print "x=$x" ; foo ; print "x=$x" ;' x=2 x=2 athyra$ So it looks like the Solaris ksh allows real local variables with old-style function definitions. When we start looking at replacing the Solaris ksh with ksh93, this is something that will need to be looked at. mike _______________________________________________ tools-discuss mailing list tools-discuss@opensolaris.org