$ a=foo 
$ : $((a=15))
arithmetic expression: variable assignment error: "a=15"
$ echo $a
15

--- /usr/src/bin/sh/arith.y     Thu Sep  4 23:31:14 2003
+++ ./arith.y   Sun Sep  7 01:04:06 2003
@@ -155,7 +155,7 @@
                } |
        ARITH_VAR ARITH_ASSIGN expr
                {
-               if (arith_assign($1, $3) != 1)
+               if (arith_assign($1, $3) != 0)
                        yyerror("variable assignment error");
                $$ = $3;
                } |

Regards,
Adi
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to