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 1Q9Axx-0001Mp-Hv for garchives@archives.gentoo.org; Mon, 11 Apr 2011 06:51:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 62A611C053; Mon, 11 Apr 2011 06:50:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2FCAC1C04B for ; Mon, 11 Apr 2011 06:50:39 +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 9E8861B40B1 for ; Mon, 11 Apr 2011 06:50:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id AB24B80074 for ; Mon, 11 Apr 2011 06:50:37 +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: <184ba26c429d522defc8a4226627dd9487acc13b.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: bashast/, bashast/gunit/ X-VCS-Repository: proj/libbash X-VCS-Files: bashast/bashast.g bashast/gunit/pipeline.gunit X-VCS-Directories: bashast/ bashast/gunit/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 184ba26c429d522defc8a4226627dd9487acc13b Date: Mon, 11 Apr 2011 06:50:37 +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: 6302490d2baf95aac7cbecf87636e004 commit: 184ba26c429d522defc8a4226627dd9487acc13b Author: Petteri R=C3=A4ty petteriraty eu> AuthorDate: Sun Apr 10 13:20:10 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Mon Apr 11 06:45:52 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D184ba26c Fix exporting variables The parser at some point has stopped supporting export FOO=3Dbar. Now it'= s fixed and covered by the test suite. --- bashast/bashast.g | 2 +- bashast/gunit/pipeline.gunit | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/bashast/bashast.g b/bashast/bashast.g index f44b235..0875ea5 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -101,7 +101,7 @@ time_posix : TIME_POSIX BLANK!+; //The structure of a command in bash command - : EXPORT^ var_def+ + : EXPORT^ (BLANK!+ var_def)+ | compound_command | simple_command; //Simple bash commands diff --git a/bashast/gunit/pipeline.gunit b/bashast/gunit/pipeline.gunit index f0eb428..4c29e8a 100644 --- a/bashast/gunit/pipeline.gunit +++ b/bashast/gunit/pipeline.gunit @@ -20,6 +20,7 @@ gunit bashast; =20 pipeline: "cat asdf" -> (COMMAND (STRING cat) (STRING asdf)) +"export VAR=3Dbar LAA=3Dlaa" -> (export (=3D VAR (STRING bar)) (=3D LAA = (STRING laa))) "time -p cat file" -> (COMMAND (STRING cat) (STRING file) (time -p)) "time cat file | grep search" -> (| (COMMAND (STRING cat) (STRING file) = time) (COMMAND (STRING grep) (STRING search))) "time -p cat | grep asdf | a.out" -> (| (| (COMMAND (STRING cat) (time -= p)) (COMMAND (STRING grep) (STRING asdf))) (COMMAND (STRING a . out)))