diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-12-29 10:28:25 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-12-30 22:16:57 -0800 |
commit | 2d36ccae3e834632a69d1f51e627722d7af0b16c (patch) | |
tree | c1b651a857c000be5263e8920b6b7cc2fba7b560 /bin/etc-update | |
parent | 1d941aed8d1fee3ae3592ada2f87b6b701d8de8c (diff) | |
download | portage-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-x | bin/etc-update | 2 |
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 |