From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q9Xt5-0002DM-En for garchives@archives.gentoo.org; Tue, 12 Apr 2011 07:19:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 626BF1C018; Tue, 12 Apr 2011 07:19:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 35D381C03A for ; Tue, 12 Apr 2011 07:19:15 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BDE511BC0D3 for ; Tue, 12 Apr 2011 07:19:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 2683E8006D for ; Tue, 12 Apr 2011 07:19:14 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: <339f7d0ec4765a473b45042832ecef1c6bd0e66b.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: bashast/ X-VCS-Repository: proj/libbash X-VCS-Files: bashast/bashast.g X-VCS-Directories: bashast/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 339f7d0ec4765a473b45042832ecef1c6bd0e66b Date: Tue, 12 Apr 2011 07:19:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: aac443233e58ade590f392cd01ea24d5 commit: 339f7d0ec4765a473b45042832ecef1c6bd0e66b Author: Petteri R=C3=A4ty petteriraty eu> AuthorDate: Mon Apr 11 13:50:16 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Mon Apr 11 13:50:50 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D339f7d0e Remove special handling for let let is a builtin like echo so it should not have any special handling in the parser. Fixes bug #363029. --- bashast/bashast.g | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/bashast/bashast.g b/bashast/bashast.g index 29e24e2..be93c21 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -213,8 +213,7 @@ cond_comparison //Defining a variable var_def : name LSQUARE BLANK? explicit_arithmetic BLANK* RSQUARE EQUALS value -= > ^(EQUALS ^(name explicit_arithmetic) value) - | name EQUALS^ value - | LET! name EQUALS^ arithmetic; + | name EQUALS^ value; //Possible values of a variable value : fname | LPAREN! wspace!? arr_val RPAREN!; @@ -510,7 +509,6 @@ AT : '@'; DOT : '.'; DOTDOT : '..'; //Arith ops -LET : 'let'; TIMES : '*'; EQUALS : '=3D'; MINUS : '-';