Made BSD diff compatible
[pspp-builds.git] / tests / stats / descript-basic.sh
index 8ce119e0975d1732b21bb189d8dd9c771d679ac9..c9e07f2cf5833fa7a5d0454b68533d9cbcd9bea8 100755 (executable)
@@ -76,7 +76,8 @@ $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/descript.stat
 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'
 1.1 DATA LIST.  Reading 1 record from the command file.
 +--------+------+-------+------+
 |Variable|Record|Columns|Format|