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 3278B138010 for ; Sun, 19 Aug 2012 14:54:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DCAEBE062D; Sun, 19 Aug 2012 14:54:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8DF0BE062D for ; Sun, 19 Aug 2012 14:54:04 +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 01A5A1B40C3 for ; Sun, 19 Aug 2012 14:54:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id AEDC1E5443 for ; Sun, 19 Aug 2012 14:54:02 +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: <1343963252.4b0cb9bdc2981094bb94e210a3bf080c303da832.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: scripts/, bashast/ X-VCS-Repository: proj/libbash X-VCS-Files: bashast/bashast.g scripts/command_execution.bash X-VCS-Directories: scripts/ bashast/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 4b0cb9bdc2981094bb94e210a3bf080c303da832 X-VCS-Branch: master Date: Sun, 19 Aug 2012 14:54:02 +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: e9bd05e0-5352-4fd5-95c7-695a21c440c4 X-Archives-Hash: 649f80b5e71c03e1cf4d12838766845c commit: 4b0cb9bdc2981094bb94e210a3bf080c303da832 Author: André Aparício gmail com> AuthorDate: Fri Aug 3 03:03:28 2012 +0000 Commit: Petteri Räty gentoo org> CommitDate: Fri Aug 3 03:07:32 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=4b0cb9bd Parser: Accept semicolons inside builtin variable definitions --- bashast/bashast.g | 1 + scripts/command_execution.bash | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/bashast/bashast.g b/bashast/bashast.g index 0d59e8c..55c469a 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -481,6 +481,7 @@ scope { |(RPAREN) => RPAREN { --$builtin_variable_definition_item::parens; } |(DQUOTE) => DQUOTE { $builtin_variable_definition_item::dquotes = ! $builtin_variable_definition_item::dquotes; } |(~(EOL|SEMIC)) => expansion_base + | {LA(1) == SEMIC && $builtin_variable_definition_item::dquotes}? => SEMIC | {LA(1) == EOL && $builtin_variable_definition_item::parens > 0 || $builtin_variable_definition_item::dquotes}? => EOL )+; diff --git a/scripts/command_execution.bash b/scripts/command_execution.bash index ca8a4e5..df6275b 100644 --- a/scripts/command_execution.bash +++ b/scripts/command_execution.bash @@ -109,6 +109,7 @@ echo "${!variable// /$'\n'}" eval abc+=\( \"\$@\" \) declare MOZILLA_FIVE_HOME="/usr/share/${PN}" declare foo=23 empty bar=42 +declare var=";; ; foobar"; echo yay echo $MOZILLA_FIVE_HOME $foo $lol $bar echo \(\)\[\]\$\"\>\'