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 1Q8ReO-0004oM-2s for garchives@archives.gentoo.org; Sat, 09 Apr 2011 06:28:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 014191C002; Sat, 9 Apr 2011 06:27:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C661E1C002 for ; Sat, 9 Apr 2011 06:27:36 +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 5632F1B4049 for ; Sat, 9 Apr 2011 06:27:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 8098E80065 for ; Sat, 9 Apr 2011 06:27:35 +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: <1c08db2941b827b6c768cda6e12b9727ece5168a.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: 1c08db2941b827b6c768cda6e12b9727ece5168a Date: Sat, 9 Apr 2011 06:27:35 +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: 285ccb58eb17b22e7c610f0e018976e6 commit: 1c08db2941b827b6c768cda6e12b9727ece5168a Author: Petteri R=C3=A4ty petteriraty eu> AuthorDate: Fri Apr 8 14:21:40 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Fri Apr 8 14:21:40 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D1c08db29 Remove warnings from pipeline time handling Reorder blank handling so that there's no more warnings. --- bashast/bashast.g | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bashast/bashast.g b/bashast/bashast.g index e167f9f..fde875d 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -95,9 +95,10 @@ list_level_2 : list_level_1 ((BLANK!?';'!|BLANK!?'&'^|(BLANK!? EOL!)+)BLANK!? list_l= evel_1)*; pipeline : var_def+ - | time?('!' BLANK!*)? BLANK!* command^ (BLANK!* PIPE^ BLANK!* command)*= ; -time : TIME^ BLANK!+ timearg?; -timearg : '-p' BLANK!+; + | BLANK!* time? (BANG BLANK!+)? command^ (BLANK!* PIPE^ BLANK!* command= )*; +time : TIME^ BLANK!+ time_posix?; +time_posix + : '-p' BLANK!+; //The structure of a command in bash command : EXPORT^ var_def+