* bugs/overwrite-input-file.sh: Don't use non-portable "diff -B".
[pspp] / tests / bugs / overwrite-input-file.sh
index 185de8b482b5c92493869e198740a9dd3708a88e..8c1fecddbb666e9c9f713a2007e915e17782aa68 100755 (executable)
@@ -162,7 +162,8 @@ $SUPERVISOR $PSPP --testing-mode $TESTFILE -e /dev/null
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare output"
-diff -b -B pspp.list - << EOF
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b pspp.list - << EOF
        X        Y
 -------- --------
     1.00     2.00
@@ -170,7 +171,6 @@ diff -b -B pspp.list - << EOF
     3.00     4.00
     4.00     5.00
     5.00     6.00
-
 X        Y
 - --------
 1     3.00
@@ -178,7 +178,6 @@ X        Y
 3     5.00
 4     6.00
 5     7.00
-
 X        Y
 - --------
 1     4.00