From e3d3ff4f22f5e41f12b2518d23ebea354a006b7b Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sat, 5 May 2012 18:00:57 +0200 Subject: [PATCH] Enable globstar shell option by default in EAPI="4-python". --- bin/ebuild.sh | 4 ++++ doc/package/ebuild/eapi/4-python.docbook | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 173865cde..32dc64f0c 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -512,6 +512,10 @@ if ! has "$EBUILD_PHASE" clean cleanrm depend && \ [[ -n $EAPI ]] || EAPI=0 fi +if has "${EAPI:-0}" 4-python; then + shopt -s globstar +fi + if ! has "$EBUILD_PHASE" clean cleanrm ; then if [[ $EBUILD_PHASE = depend || ! -f $T/environment || \ -f $PORTAGE_BUILDDIR/.ebuild_changed ]] || \ diff --git a/doc/package/ebuild/eapi/4-python.docbook b/doc/package/ebuild/eapi/4-python.docbook index b4cbc1ad4..99ad197ac 100644 --- a/doc/package/ebuild/eapi/4-python.docbook +++ b/doc/package/ebuild/eapi/4-python.docbook @@ -31,6 +31,12 @@ official EAPI 4-python Specification. The "." character is allowed in USE flags. +
+globstar shell option enabled by default + +globstar shell option is enabled by default, which enables recursive expansion of ** pattern in pathname expansion context. + +
REPOSITORY Variable -- 2.26.2