Made BSD diff compatible
[pspp-builds.git] / tests / bugs / temp-freq.sh
index 63ac638de16cc8431e522a62258719a95cda292f..5e7f31c3f892748067f2f728a2658a287f137f81 100755 (executable)
@@ -75,7 +75,8 @@ if [ $? -ne 0 ] ; then no_result ; fi
 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
-diff -b -B -w $TEMPDIR/pspp.list - << EOF
+perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
+diff -b  -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
 1.1 DATA LIST.  Reading free-form data from the command file.
 +--------+------+
 |Variable|Format|