On 23 August 2013 14:38, David Korn <[email protected]> wrote: > cc: [email protected] [email protected] > Subject: Re: Re: Re: [uwin-developers] [ast-developers] Next alpha/beta and > roadmap for ksh93v? > -------- > > >> Why? How should I construct scripts from that using variables, i.e. >> use typeset -s -E svar; printf 'typeset -s -E var; for ((var = %s; var >> < %s; var+= %s)); do myfunc var; done' ${svar.MIN} ${svar.MAX} >> $((2**24)) | source /dev/stdin >> >> >> > svar.MIN and svar.MAX will exist, but only in arithemtic expressions. > Thus, $((svar.MIN)) and $((svar.MAX)) instead of ${svar.MIN} ${svar.MAX}. > Only constants like PI, NaN, Inf, and others will not exist for each type. > The limits would.
I don't understand this. The patch astksh20130814_math_constants001.diff.txt already allows MIN, MAX, EPSILON etc if they are defined in .sh.mathconst. Why is the functionality now restricted to $(())? It just makes it much harder to use, if usable at all. Tina -- Tina Harriott - Women in Mathematics Contact: [email protected] _______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
