Made tests BSD diff compatible
[pspp-builds.git] / tests / command / t-test-pairs.sh
index b3ef8415b03efd06a5ce76c5dfad37e5949f159d..7932b707c8882719b9b59fef0530d668f98b27aa 100755 (executable)
@@ -69,7 +69,8 @@ $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare output"
-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 free-form data from the command file.
 +--------+------+
 |Variable|Format|