Made tests BSD diff compatible
[pspp] / tests / command / split-file.sh
index f9ae79abab3e93923a86e42701fa9c2229605118..7a992a16af6fbd421e430665c707f57e4ea7f71e 100755 (executable)
@@ -78,7 +78,8 @@ $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/split.stat
 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'
 Variable Value Label
 X            1