Made tests BSD diff compatible
[pspp-builds.git] / tests / command / import-export.sh
index 74a27543401bf6e61c24865ef530aedf6f512006..de8a147d558c0ef9b46860c4cf6ff74959468b0a 100755 (executable)
@@ -70,7 +70,8 @@ $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; 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'
        X        Y
 -------- --------
     1.00     2.00