Made tests BSD diff compatible
[pspp-builds.git] / tests / command / list.sh
index 13801abcbe42d256e2debfed94c8aad7151519ce..58098ebfe67235e8b1001d1e0a99f5f5abb7329c 100755 (executable)
@@ -73,7 +73,8 @@ 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'
 1.1 DATA LIST.  Reading 1 record from file $top_srcdir/tests/weighting.data.
 +--------+------+-------+------+
 |Variable|Record|Columns|Format|