Subject: Re: [ast-users] ksh93t+ problem & bug -------- > From: John DuBois <[email protected]> > > I see that in t+, ksh93 emits a warning when an empty string is used as an > index of an associative array: > > warning: adding empty subscript > > It appears that there is no way to disable this. I found it surprising, since > I'm used to any string being usable (without complaint) as an index in an > associative array, as in previous ksh93, awk, and such. It would be nice if > there were at least a way to disable the warning - working around this would > require quite a bit of work on my library of ksh93 programs. I will change this so that the warning only occurs with -x. > > Also in t+, there are problems with discipline functions: > > $ ksh -c 'function x.get { print "Subscript: ${.sh.subscript}"; }; : ${x[1]}; > pr > int Done' > Done > $ ksh -c 'typeset -A x; function x.get { print "Subscript: ${.sh.subscript}"; > }; > : ${x[1]}; print Done' > Memory fault I ran this with the current release and did not get a core dump. > > The above is the behavior of the ksh in the package available for Ubuntu 9.10, > "Version JM 93t+ 2009-05-01" > > John > -- > John DuBois [email protected] KC6QKZ/AE
David Korn [email protected] _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
