From: Arfrever Frehtes Taifersar Arahesis Date: Sat, 5 May 2012 16:00:57 +0000 (+0200) Subject: Enable globstar shell option by default in EAPI="4-python". X-Git-Tag: v2.2.0_alpha102~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e3d3ff4f22f5e41f12b2518d23ebea354a006b7b;p=portage.git Enable globstar shell option by default in EAPI="4-python". --- 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