From owner-freebsd-current@FreeBSD.ORG Sat Sep 6 19:29:23 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01A1916A4BF for ; Sat, 6 Sep 2003 19:29:23 -0700 (PDT) Received: from mail.rdslink.ro (mail.rdslink.ro [193.231.236.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 96C8643FF9 for ; Sat, 6 Sep 2003 19:29:21 -0700 (PDT) (envelope-from enache@rdslink.ro) Received: (qmail 16501 invoked from network); 7 Sep 2003 02:25:47 -0000 Received: from unknown (HELO ratsnest.hole) (81.196.245.75) by mail.rdslink.ro with SMTP; 7 Sep 2003 02:25:47 -0000 Date: Sun, 7 Sep 2003 04:27:00 +0300 From: Enache Adrian To: current@freebsd.org Message-ID: <20030907012700.GA1148@ratsnest.hole> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: [PATCH] /bin/sh buglet X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 02:29:23 -0000 $ 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