Made BSD diff compatible
[pspp-builds.git] / tests / command / sample.sh
index 39d1b8dcfdd9dff5a986c23372bf973c5559311f..099df5f25b5898777e3b0a84c88b47250a1a6ef8 100755 (executable)
@@ -86,7 +86,8 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="compare head"
-diff -B -b $TEMPDIR/head - << EOF
+perl -pi -e 's/^\s*$//g' $TEMPDIR/head
+diff -b $TEMPDIR/head - << EOF |perl -e 's/^\s*$//g'
  A
 --
 EOF