aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-08-28 14:53:42 +0200
committerUlrich Müller <ulm@gentoo.org>2014-08-28 14:53:42 +0200
commit759fb65536efbd7efd171d0fb8e461d192b5c0d9 (patch)
tree37561d6e38335a846b1db0768bcca91dd4d72597 /modules/config.eselect
parenteselect.bashcomp: Improve handling of options followed by an equals sign. (diff)
downloadeselect-759fb65536efbd7efd171d0fb8e461d192b5c0d9.tar.gz
eselect-759fb65536efbd7efd171d0fb8e461d192b5c0d9.tar.bz2
eselect-759fb65536efbd7efd171d0fb8e461d192b5c0d9.zip
Remove redundant $@ in "for" loops throughout.
* libs/core.bash.in (inherit): * libs/tests.bash.in (has): * modules/config.eselect (generic_handle_one_file, accept_handler) (merge_handler, display_handler): * modules/news.eselect (find_items, do_list, do_read, do_unread): * modules/rc.eselect (run_runscript, do_show): Remove redundant $@ in "for" loops throughout.
Diffstat (limited to 'modules/config.eselect')
-rw-r--r--modules/config.eselect8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/config.eselect b/modules/config.eselect
index dfa3826..7383b2f 100644
--- a/modules/config.eselect
+++ b/modules/config.eselect
@@ -62,7 +62,7 @@ generic_handle_one_file() {
local file_raw file
# for each parameter...
- for file_raw in "$@" ; do
+ for file_raw; do
[[ -z ${file_raw} ]] && continue
# do we have a number or a name?
@@ -162,7 +162,7 @@ do_accept() {
accept_handler() {
local file
- for file in "$@" ; do
+ for file; do
local sfile="${file}" dfile="${file/._cfg????_}"
echo "Replacing ${dfile} with ${sfile}..."
mv --interactive "${sfile}" "${dfile}"
@@ -201,7 +201,7 @@ do_merge() {
merge_handler() {
local file
- for file in "$@" ; do
+ for file; do
local sfile="${file}" dfile="${file/._cfg????_}"
echo "Merging ${dfile} with ${sfile}..."
merge_prog ${dfile} ${sfile}
@@ -242,7 +242,7 @@ do_display() {
display_handler() {
local file
- for file in "$@" ; do
+ for file; do
local sfile="${file}" dfile="${file/._cfg????_}"
echo "Proposed changes to ${dfile}:"
diff_prog -u ${dfile} ${sfile}