Made tests BSD diff compatible
[pspp] / tests / command / examine-percentiles.sh
index 0d23b41feb03334f7f7c6194c9f4eb09ac55d024..21b88a04b942a666c13f34259238030250357dc3 100755 (executable)
@@ -82,7 +82,8 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="compare results"
-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|