aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-01-04 22:12:47 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-01-04 22:12:47 +0000
commit63be8d5c13402c09badd6f7eec77bee3535e00d0 (patch)
tree071a2aa98ee43c232f9f8c6072af013082dcde19
parentfcc837994326a9b9866f427570fd411b1bfaecef (diff)
downloadpaludis-63be8d5c13402c09badd6f7eec77bee3535e00d0.tar.gz
paludis-63be8d5c13402c09badd6f7eec77bee3535e00d0.tar.xz
Also filter declare statements.
-rwxr-xr-x[-rw-r--r--]paludis/repositories/e/ebuild/source_functions.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/source_functions.bash b/paludis/repositories/e/ebuild/source_functions.bash
index 4a5f588..2975ab6 100644..100755
--- a/paludis/repositories/e/ebuild/source_functions.bash
+++ b/paludis/repositories/e/ebuild/source_functions.bash
@@ -33,7 +33,7 @@ ebuild_safe_source()
shopt -s extdebug
trap "[[ \${BASH_COMMAND%% *} == @(eval|trap) ||
( \${BASH_COMMAND} != *([^\$'\n'])=* && \${BASH_COMMAND} != export\ * ) ||
- \${BASH_COMMAND} != ?(export\ )@($(IFS='|'; shift; echo "${*}"))?(=*) ]]" DEBUG
+ \${BASH_COMMAND} != ?(export\ |declare\ ?(+([^\ ])\ ))@($(IFS='|'; shift; echo "${*}"))?(=*) ]]" DEBUG
source "${1}"
eval "trap DEBUG; shopt -u extdebug; set +T; return ${?}"