Made tests BSD diff compatible
[pspp-builds.git] / tests / command / file-label.sh
index aaf404f412d9991e2b76354de3bbdd33a8b76473..839990944250d67f133beb652dce4e3f9e2b92d7 100755 (executable)
@@ -116,7 +116,8 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="compare results"
-diff -b -B $TEMPDIR/pspp.filtered - <<EOF
+perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
+diff -b  $TEMPDIR/pspp.filtered - <<EOF | perl -e 's/^\s*$//g'
 1.1 DATA LIST.  Reading 1 record from the command file.
 +--------+------+-------+------+
 |Variable|Record|Columns|Format|