Просмотр исходного кода

(compare): Fixed argument quoting under eval

Sergey Poznyakoff 21 лет назад
Родитель
Сommit
3295d54e21
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tests/after

+ 1 - 1
tests/after

@@ -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