(compare): Fixed argument quoting under eval

This commit is contained in:
Sergey Poznyakoff
2004-05-10 13:48:23 +00:00
parent be8899e6aa
commit 3295d54e21

View File

@@ -18,7 +18,7 @@ compare() {
mv ${tempfile}.1 ${tempfile}
fi
if eval test -z "\${${1}_regex}" ; then
if eval test -z \"\${${1}_regex}\" ; then
cmp -s ${tempfile}0 ${tempfile} || exit 1
else
awk '{print NR " " $0}' ${tempfile}0 > ${tempfile}.1