[Repost because of mailinglist outage] ---------- Forwarded message ---------- From: Roland Mainz <[email protected]> Date: Fri, May 3, 2013 at 8:58 PM Subject: Warning for var3=$(( var1+var2 )) if var3 is declared a numeric variable ? To: [email protected] Cc: David Korn <[email protected]>, Glenn Fowler <[email protected]>, ольга крыжановская <[email protected]>
Hi! ---- [Follow-up to today's on today's ksh93 -n issue (see http://lists.research.att.com/pipermail/ast-developers/2013q2/002516.html)] I don't know whether this is easy to implement... but could ksh93 -n issue a warning if it encounters a statement like var3=$(( var1+var2 )) instead of (( var3=var1+var2 )) if var3 is declared using typeset -i/-E/-X (e.g. is a numeric variable of some kind) ? ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [email protected] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) -- __ . . __ (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] http://lists.research.att.com/mailman/listinfo/ast-developers
