diff --git a/mozilla/htmlparser/tests/outsinks/TestOutSinks b/mozilla/htmlparser/tests/outsinks/TestOutSinks
index e8e378cd4f5..4e38b770982 100755
--- a/mozilla/htmlparser/tests/outsinks/TestOutSinks
+++ b/mozilla/htmlparser/tests/outsinks/TestOutSinks
@@ -90,7 +90,7 @@ if ($status != 0) then
set errmsg = ($errmsg "htmltable.out")
endif
-if ($errmsg != "") then
+if ("$errmsg" != "") then
echo " "
echo TESTS FAILED: $errmsg
exit 1
diff --git a/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks b/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks
index e8e378cd4f5..4e38b770982 100755
--- a/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks
+++ b/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks
@@ -90,7 +90,7 @@ if ($status != 0) then
set errmsg = ($errmsg "htmltable.out")
endif
-if ($errmsg != "") then
+if ("$errmsg" != "") then
echo " "
echo TESTS FAILED: $errmsg
exit 1