summaryrefslogtreecommitdiffstats
path: root/bin/etc-update
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-29 10:28:25 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-30 22:16:57 -0800
commit2d36ccae3e834632a69d1f51e627722d7af0b16c (patch)
treec1b651a857c000be5263e8920b6b7cc2fba7b560 /bin/etc-update
parent1d941aed8d1fee3ae3592ada2f87b6b701d8de8c (diff)
downloadportage-2d36ccae3e834632a69d1f51e627722d7af0b16c.tar.gz
portage-2d36ccae3e834632a69d1f51e627722d7af0b16c.tar.bz2
portage-2d36ccae3e834632a69d1f51e627722d7af0b16c.zip
bash: as a general rule, use read -r
This solves cases like bug #350045.
Diffstat (limited to 'bin/etc-update')
-rwxr-xr-xbin/etc-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/etc-update b/bin/etc-update
index e64ef493b..03e9dc9fe 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -206,7 +206,7 @@ user_special() {
echo "ERROR: user_special() called without arguments"
return 1
fi
- while read pat; do
+ while read -r pat; do
echo ${1} | grep "${pat}" > /dev/null && return 0
done < ${PORTAGE_CONFIGROOT}etc/etc-update.special
fi