From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/eselect:master commit in: /, libs/
Date: Tue, 1 Nov 2016 06:29:09 +0000 (UTC) [thread overview]
Message-ID: <1477902655.1b4e2608f7463d98270c0b709cffe09d1b5d2d86.ulm@gentoo> (raw)
commit: 1b4e2608f7463d98270c0b709cffe09d1b5d2d86
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 31 08:30:55 2016 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Oct 31 08:30:55 2016 +0000
URL: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=1b4e2608
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.
ChangeLog | 6 ++++++
README | 2 +-
libs/core.bash.in | 6 +++++-
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c7a54f6..80bc483 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-10-31 Ulrich Müller <ulm@gentoo.org>
+
+ * 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.
+
2016-10-30 Ulrich Müller <ulm@gentoo.org>
* configure.ac: Update version to 1.4.7.
diff --git a/README b/README
index 945dc41..de19882 100644
--- a/README
+++ b/README
@@ -34,7 +34,7 @@ Style Notes
one tab per indent level, with each tab representing 4 places.
* Avoid lines wider than 79 positions.
* Public functions don't get the ``es_`` prefix, private functions do.
-* eval is evil, so don't use it.
+* eval is evil, so we disabled it.
* Absolute paths to executables are not portable, so don't use them.
\f
diff --git a/libs/core.bash.in b/libs/core.bash.in
index baddfde..4418d51 100644
--- a/libs/core.bash.in
+++ b/libs/core.bash.in
@@ -119,7 +119,11 @@ inherit() {
done
}
-# GNU sed wrapper (sed or gsed, as determined by configure)
+# make eval not work, because it's evil
+eval() {
+ die "Don't use eval. Find another way."
+}
+
sed() {
command @SED@ "$@"
}
next reply other threads:[~2016-11-01 6:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-01 6:29 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-01-23 12:52 [gentoo-commits] proj/eselect:master commit in: /, libs/ Ulrich Müller
2019-02-13 20:51 Ulrich Müller
2021-08-26 13:59 Ulrich Müller
2023-03-14 16:55 Ulrich Müller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1477902655.1b4e2608f7463d98270c0b709cffe09d1b5d2d86.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox