diff options
author | Ulrich Müller <ulm@gentoo.org> | 2016-10-31 09:30:55 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2016-10-31 09:30:55 +0100 |
commit | 6e078f8a6e665f473bbf96668f13871e6119e0d8 (patch) | |
tree | 7efaa5601346bedcd0ee461a618e6be519ff5bc6 /libs | |
parent | Update version to 1.4.7. (diff) | |
download | eselect-6e078f8a6e665f473bbf96668f13871e6119e0d8.tar.gz eselect-6e078f8a6e665f473bbf96668f13871e6119e0d8.tar.bz2 eselect-6e078f8a6e665f473bbf96668f13871e6119e0d8.zip |
Disable eval again.
* libs/core.bash.in (eval): Disable eval again, because the
workaround for the rc module (sourcing functions.sh) is no longer
needed. See also 2005-05-15 change by ciaranm.
This partially reverts commit 76867bf1a47570cd9548100caed519252b5ced5a.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/core.bash.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/core.bash.in b/libs/core.bash.in index baddfde..da35ee9 100644 --- a/libs/core.bash.in +++ b/libs/core.bash.in @@ -119,6 +119,12 @@ inherit() { done } +# make eval not work, because it's evil +eval() { + write_warning_msg "Don't use eval. Find another way." + builtin eval "$@" +} + # GNU sed wrapper (sed or gsed, as determined by configure) sed() { command @SED@ "$@" |