Made tests BSD diff compatible
[pspp-builds.git] / tests / command / loop.sh
index f06f61a8a72123095369ff94168d7009e239d8ea..f5bfc92a5707d7d10273b7a9b627908e54ab48db 100755 (executable)
@@ -76,7 +76,8 @@ EOF
 if [ $? -ne 0 ] ; then fail ; 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 the command file.
 +----------+------+-------+------+
 | Variable |Record|Columns|Format|