Is there a reason why ksh -n triggers a warning (( x=$y )) about
efficiency but $(( x=$y )) does not?

> ~/bin/ksh -n -c 'float x=1 y=2 ; (( x=$y )) ; '
/home/ced/bin/ksh: warning: line 1: variable expansion makes
arithmetic evaluation less efficient
> ~/bin/ksh -n -c 'float x=1 y=2 ; : $(( x=$y )) ; '

Ced
-- 
Cedric Blancher <[email protected]>
Institute Pasteur
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to