summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 3307bcdd5..e810446f9 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1173,9 +1173,10 @@ inherit() {
olocation=""
export ECLASS="$1"
- __export_funcs_var=__export_functions_${ECLASS/-/___}
- while [[ $__export_funcs_var != ${__export_funcs_var/-/___} ]] ; do
- __export_funcs_var=${__export_funcs_var/-/___}
+ __export_funcs_var=__export_functions_$ECLASS
+ while [[ $__export_funcs_var =~ [-.] ]] ; do
+ __export_funcs_var=${__export_funcs_var/-/__dash__}
+ __export_funcs_var=${__export_funcs_var/./__dot__}
done
unset $__export_funcs_var