summaryrefslogtreecommitdiffstats
path: root/bin/sh/arith.y
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2003-09-07 10:14:56 +0000
committerschweikh <schweikh@FreeBSD.org>2003-09-07 10:14:56 +0000
commitfacd570df8bba625c16c09c71f1607741e385cfa (patch)
treeee1162cf689dfd31e13175b66824f41b7856ced6 /bin/sh/arith.y
parentf00a5ee89425945bc84b8d85fbf40e5da8ebec26 (diff)
downloadFreeBSD-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.y2
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;
} |
OpenPOWER on IntegriCloud