summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-09-18 20:03:12 +0000
committerUlrich Müller <ulm@gentoo.org>2009-09-18 20:03:12 +0000
commit19125bc49f1f32281119cd327d64e0306e5e71d1 (patch)
treef141ff2600c4f7ef1d8b285edaa61a4158b87d96 /bin/eselect.in
parentAdd support for brief output mode in modules.eselect. Speed up bash completion. (diff)
downloadeselect-19125bc49f1f32281119cd327d64e0306e5e71d1.tar.gz
eselect-19125bc49f1f32281119cd327d64e0306e5e71d1.tar.bz2
eselect-19125bc49f1f32281119cd327d64e0306e5e71d1.zip
Don't accept parameters for built-in actions.
svn path=/trunk/; revision=658
Diffstat (limited to 'bin/eselect.in')
-rwxr-xr-xbin/eselect.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/eselect.in b/bin/eselect.in
index 0bca2c7..c28123a 100755
--- a/bin/eselect.in
+++ b/bin/eselect.in
@@ -185,7 +185,8 @@ fi
if [[ -n ${action} ]] ; then
if is_function "ec_do_${action}" ; then
- ec_do_${action} "$@"
+ [[ $# -gt 0 ]] && die -q "Too many parameters"
+ ec_do_${action}
else
do_action "${action}" "$@"
fi