Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2003 12:16:50 +0200
From:      Jens Schweikhardt <schweikh@schweikhardt.net>
To:        Enache Adrian <enache@rdslink.ro>
Cc:        current@freebsd.org
Subject:   Re: [PATCH] /bin/sh buglet
Message-ID:  <20030907101650.GA1558@schweikhardt.net>
In-Reply-To: <20030907012700.GA1148@ratsnest.hole>
References:  <20030907012700.GA1148@ratsnest.hole>

next in thread | previous in thread | raw e-mail | index | archive | help
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 @@
#  		} |
#  	ARITH_VAR ARITH_ASSIGN expr
#  		{
# -		if (arith_assign($1, $3) != 1)
# +		if (arith_assign($1, $3) != 0)
#  			yyerror("variable assignment error");
#  		$$ = $3;
#  		} |

Good catch! Commited. Thanks!

Regards,

	Jens
-- 
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030907101650.GA1558>