Made tests BSD diff compatible
[pspp] / tests / command / print.sh
index ca34602344b5e41dd38251a1883db1f2dda7a79a..1f135d9bb7ca6ebc2d0e546dd3f738c00e56219c 100755 (executable)
@@ -98,7 +98,8 @@ if [ $? -ne 0 ] ; then fail ; 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 file $TEMPDIR/data-list.data.
 +--------+------+
 |Variable|Format|