Made tests BSD diff compatible
[pspp-builds.git] / tests / command / t-test-groups.sh
index ca0cca4577e92c32a45d5cdb5ee6535ca905cfeb..8e388afa6ae8db82a18e310f157874bc2c42f24b 100755 (executable)
@@ -77,7 +77,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|