gendiff: use 'read -r' for 'read'

This commit is contained in:
Alexey Tourbin 2007-01-24 17:41:51 +03:00
parent bc2fda3644
commit c9e81ef8ee

View File

@ -12,7 +12,7 @@ fi
find "$1" -mindepth 1 \( -name "*$2" -o -name ".*$2" \) -print |
LC_COLLATE=C sort -u |
while read fin; do
while read -r fin; do
fou=`echo "$fin" |sed -e "s/$2\$//"`
[ -r "$fin" ] || fin="/dev/null"
[ -r "$fou" ] || fou="/dev/null"