Made tests BSD diff compatible
[pspp] / tests / command / rename.sh
index c5d3ecfc4eaec05153aaaf725d8587ee6c59de16..2c43d3a7f2c2a6463fb94f98fec174e4ad96fa51 100755 (executable)
@@ -78,7 +78,8 @@ grep -i Brake $TEMPDIR/rename.sav
 if [ $? -eq 0 ] ; then fail ; 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 free-form data from the command file.
 +----------+------+
 | Variable |Format|