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 1QaQ8P-0006av-2S for garchives@archives.gentoo.org; Sat, 25 Jun 2011 10:30:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 93DD91C03D; Sat, 25 Jun 2011 10:30:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 597241C04A for ; Sat, 25 Jun 2011 10:30:18 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C05851B4022 for ; Sat, 25 Jun 2011 10:30:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 0BFC58004B for ; Sat, 25 Jun 2011 10:30:17 +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: <24c5d0ac08d27131f0c38c41c6c1ae8e65999c1a.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: scripts/, bashast/ X-VCS-Repository: proj/libbash X-VCS-Files: bashast/libbashWalker.g scripts/command_execution.bash scripts/command_execution.bash.result X-VCS-Directories: scripts/ bashast/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 24c5d0ac08d27131f0c38c41c6c1ae8e65999c1a Date: Sat, 25 Jun 2011 10:30:17 +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: 7ea1d0472fbad4b4b625f6c86f6d76b2 commit: 24c5d0ac08d27131f0c38c41c6c1ae8e65999c1a Author: Mu Qiao gentoo org> AuthorDate: Mon Jun 20 11:04:00 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Wed Jun 22 11:56:04 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D24c5d0ac Walker: support arithmetic expression --- bashast/libbashWalker.g | 1 + scripts/command_execution.bash | 1 + scripts/command_execution.bash.result | 1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/bashast/libbashWalker.g b/bashast/libbashWalker.g index d6a6dca..879443d 100644 --- a/bashast/libbashWalker.g +++ b/bashast/libbashWalker.g @@ -616,6 +616,7 @@ command_list: ^(LIST logic_command_list+); compound_command : ^(CURRENT_SHELL command_list) | ^(COMPOUND_COND cond_expr) + | ^(ARITHMETIC_EXPRESSION arithmetics) | for_expr | while_expr | if_expr diff --git a/scripts/command_execution.bash b/scripts/command_execution.b= ash index 2df1b0d..d485d57 100644 --- a/scripts/command_execution.bash +++ b/scripts/command_execution.bash @@ -55,3 +55,4 @@ shopt -s extglob shopt -p printf "%s %s\n" abc def printf "%s %s\n" $FOO001, def +((FOO010=3D1)) diff --git a/scripts/command_execution.bash.result b/scripts/command_exec= ution.bash.result index 3165843..280798b 100644 --- a/scripts/command_execution.bash.result +++ b/scripts/command_execution.bash.result @@ -63,3 +63,4 @@ FOO004=3Dabc FOO005=3D1 2 3 FOO008=3Dabc def ghi FOO009=3D10 +FOO010=3D1