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 1QoyOr-0006GP-4D for garchives@archives.gentoo.org; Thu, 04 Aug 2011 13:55:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2186121C1E5; Thu, 4 Aug 2011 13:53:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E43C521C1E5 for ; Thu, 4 Aug 2011 13:53:41 +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 A1FC91B4016 for ; Thu, 4 Aug 2011 13:53:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 04E468004F for ; Thu, 4 Aug 2011 13:53:41 +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: <97ed8ee45a88e47196024528b3da0c75077f05ba.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/fname.gunit X-VCS-Directories: bashast/ bashast/gunit/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 97ed8ee45a88e47196024528b3da0c75077f05ba Date: Thu, 4 Aug 2011 13:53:41 +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: c0cfb0ea74a9ac9bc0a5f4912575e190 commit: 97ed8ee45a88e47196024528b3da0c75077f05ba Author: Mu Qiao gentoo org> AuthorDate: Thu Jul 21 14:16:18 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Tue Aug 2 07:46:29 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D97ed8ee4 Parser: allow filename expansion characters --- bashast/bashast.g | 4 +++- bashast/gunit/fname.gunit | 1 + 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/bashast/bashast.g b/bashast/bashast.g index 0a9557e..2709fc5 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -662,7 +662,9 @@ ns_string_part |OTHER|EQUALS|PCT|PCTPCT|PLUS|MINUS|DOT|DOTDOT|COLON|TEST_EXPR |TILDE|MUL_ASSIGN|DIVIDE_ASSIGN|MOD_ASSIGN |LSHIFT_ASSIGN|RSHIFT_ASSIGN|AND_ASSIGN|XOR_ASSIGN|LSQUARE|RSQUARE - |OR_ASSIGN|CARET|POUND|POUNDPOUND|COMMA|EXPORT|LOCAL|AT; + |OR_ASSIGN|CARET|POUND|POUNDPOUND|COMMA|EXPORT|LOCAL|AT + // The following is for filename expansion + |TIMES|QMARK; =20 escaped_character : ESC diff --git a/bashast/gunit/fname.gunit b/bashast/gunit/fname.gunit index f07b3db..3d60bc2 100644 --- a/bashast/gunit/fname.gunit +++ b/bashast/gunit/fname.gunit @@ -20,6 +20,7 @@ gunit java_libbash; =20 string_expr: "+%Y%m%d" -> (STRING + % Y % m % d) +"/tmp/a?b*" -> (STRING / tmp / a ? b *) "\"http://www.gnu.org/software/autoconf/autoconf.html\"" -> (STRING (DOU= BLE_QUOTED_STRING http : / / www . gnu . org / software / autoconf / auto= conf . html)) "\"http://dev.gentoo.org/~mpagano/genpatches\"" -> (STRING (DOUBLE_QUOTE= D_STRING http : / / dev . gentoo . org / ~ mpagano / genpatches)) "\"\"" -> (STRING DOUBLE_QUOTED_STRING)