chuli schrieb:
When I executed such expression "var1=$(( var+= ))", var1 is 0. but I think it should be a syntax error. Is it right?
You may be right. Bash reports an error here, while ksh behaves somewhat peculiar:
print -- $(( x = "" )) # 0 print -- $(( x = )) # 0 print -- $(( x = ' )) # 32 print -- $(( x = '' )) # 39 print -- $(( x = ''' )) # 39 print -- $(( x = '''' )) # syntax error: operand expected x=0;print -- $(( x += )) # -2,23687087744279189e-4158 I also had an output "-nan" once, but can't reproduce it right now. Bernd -- Bernd Eggink [EMAIL PROTECTED] http://sudrala.de _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
