diff options
author | schweikh <schweikh@FreeBSD.org> | 2003-09-07 10:14:56 +0000 |
---|---|---|
committer | schweikh <schweikh@FreeBSD.org> | 2003-09-07 10:14:56 +0000 |
commit | facd570df8bba625c16c09c71f1607741e385cfa (patch) | |
tree | ee1162cf689dfd31e13175b66824f41b7856ced6 /bin/sh/arith.y | |
parent | f00a5ee89425945bc84b8d85fbf40e5da8ebec26 (diff) | |
download | FreeBSD-src-facd570df8bba625c16c09c71f1607741e385cfa.zip FreeBSD-src-facd570df8bba625c16c09c71f1607741e385cfa.tar.gz |
Fix testing of arith_assign() value for $((a=15)).
Submitted by: Enache Adrian <enache@rdslink.ro>
Diffstat (limited to 'bin/sh/arith.y')
-rw-r--r-- | bin/sh/arith.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/arith.y b/bin/sh/arith.y index 78c7545..a445a43 100644 --- a/bin/sh/arith.y +++ b/bin/sh/arith.y @@ -155,7 +155,7 @@ expr: } | ARITH_VAR ARITH_ASSIGN expr { - if (arith_assign($1, $3) != 1) + if (arith_assign($1, $3) != 0) yyerror("variable assignment error"); $$ = $3; } | |