Made tests BSD diff compatible
[pspp] / tests / command / count.sh
index 0b5b751e09f66bc6069c9d894071b876445a7180..351d636fdef0b5ede2ef5e0f658a082d11bd7422 100755 (executable)
@@ -73,7 +73,8 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="compare results"
-diff -b -B $TEMPDIR/pspp.list - <<EOF
+perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
+diff -b  $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
 1.1 DATA LIST.  Reading 1 record from the command file.
 +--------+------+-------+------+
 |Variable|Record|Columns|Format|