On 5/2/16 2:59 PM, Grisha Levit wrote: > > On Mon, May 2, 2016 at 2:48 PM, Chet Ramey <chet.ra...@case.edu > <mailto:chet.ra...@case.edu>> wrote: > > and this one throws away the nameref attribute: > > typeset -n foo ; typeset -i foo ; foo=7*6 ; typeset -p foo > > > I think it's important to note that the nameref attribute is thrown away at > the `typeset -i foo' step, which makes some sense since `typeset -n -i' > does not seem to be valid in ksh.
The issue I'm thinking about currently is whether or not to allow nameref variables to have numeric (integer) values. bash-4.3 didn't allow those values to be expanded, but allowed them to be assigned. It doesn't seem harmful to change the error to assignment time. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/