From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 820C4138010 for ; Sun, 19 Aug 2012 14:35:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB56EE0417; Sun, 19 Aug 2012 14:35:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9D2AEE0417 for ; Sun, 19 Aug 2012 14:35:31 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 51C671B40C4 for ; Sun, 19 Aug 2012 14:35:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C4710E543D for ; Sun, 19 Aug 2012 14:35:21 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: <1345386721.10e8001655ed4e82eccdeb650f073d462a66ff78.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: 10e8001655ed4e82eccdeb650f073d462a66ff78 X-VCS-Branch: master Date: Sun, 19 Aug 2012 14:35:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1c648a18-feeb-42d6-b68a-010fb53e337f X-Archives-Hash: ccc40f8f6c52bacf8a95b4c36ff82c29 commit: 10e8001655ed4e82eccdeb650f073d462a66ff78 Author: André Aparício gmail com> AuthorDate: Tue Aug 7 03:16:45 2012 +0000 Commit: Petteri Räty gentoo org> CommitDate: Sun Aug 19 14:32:01 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=10e80016 Parser: Support line break after pipe --- 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 9fd3fdb..8943209 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -272,7 +272,7 @@ command_separator | AMP^ | EOL!; pipeline - : time? ((BANG) => (BANG BLANK!))? command^ (BLANK!? PIPE^ BLANK!? command)*; + : time? ((BANG) => (BANG BLANK!))? command^ (BLANK!? PIPE^ wspace!? command)*; time : TIME^ BLANK! ((time_posix) => time_posix)?; diff --git a/bashast/gunit/pipeline.gunit b/bashast/gunit/pipeline.gunit index b97ec3b..4a3a4f4 100644 --- a/bashast/gunit/pipeline.gunit +++ b/bashast/gunit/pipeline.gunit @@ -30,3 +30,4 @@ pipeline: echo \"three\" fi" -> (COMMAND (IF_STATEMENT (if (LIST (COMMAND (STRING cat) time)) (LIST (COMMAND (STRING echo) (STRING (DOUBLE_QUOTED_STRING three))))))) "i=1 j=2" -> (COMMAND (VARIABLE_DEFINITIONS (= i (STRING 1)) (= j (STRING 2)))) +"cat foo |\ncat" -> (| (COMMAND (STRING cat) (STRING foo)) (COMMAND (STRING cat)))