Made BSD diff compatible
[pspp-builds.git] / tests / command / beg-data.sh
index 846d936ca73b6b08eca136561ea6eee31041400b..4c6ee92d3edf4c53e754d58ca4bbf0c79f1505f3 100755 (executable)
@@ -80,7 +80,8 @@ $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare data"
-diff -b -B $TEMPDIR/pspp.list - << foobar
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b $TEMPDIR/pspp.list - << foobar |perl -e 's/^\s*$//g'
 1.1 DATA LIST.  Reading 1 record from the command file.
 +--------+------+-------+------+
 |Variable|Record|Columns|Format|