On Sun, Sep 07, 2003 at 04:27:00AM +0300, Enache Adrian wrote:
# $ 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 @@
#
$ 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
{
-