Made BSD diff compatible
authorJason Stover <jhs@math.gcsu.edu>
Mon, 10 Oct 2005 21:01:25 +0000 (21:01 +0000)
committerJason Stover <jhs@math.gcsu.edu>
Mon, 10 Oct 2005 21:01:25 +0000 (21:01 +0000)
tests/command/loop.sh
tests/command/no_case_size.sh

index f5bfc92a5707d7d10273b7a9b627908e54ab48db..e1f7ef096ef4193a6b837ee1352af1c63e5f71fb 100755 (executable)
@@ -70,7 +70,8 @@ $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/loop.stat > $
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare stdout"
-diff -B -b $TEMPDIR/stdout  - <<EOF
+perl -pi -e 's/^\s*$//g' $TEMPDIR/stdout
+diff -b $TEMPDIR/stdout  - <<EOF |perl -e 's/^\s*$//g'
 $TEMPDIR/loop.stat:10: warning: BREAK: BREAK not enclosed in DO IF structure.
 EOF
 if [ $? -ne 0 ] ; then fail ; fi
index 9e4ac2400ca5cdf280cfbbfa8fe2521dd62cfb99..5323b875a3c64d88cb141341e3b684bd9d6eddbd 100755 (executable)
@@ -68,7 +68,8 @@ $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare output"
-diff -b -B -w pspp.list - <<EOF
+perl -pi -e 's/^\s*$//g' pspp.list
+diff -b -w pspp.list - <<EOF |perl -e 's/^\s*$//g'
 1.1 DISPLAY.  
 +--------+-------------------------------------------+--------+
 |Variable|Description                                |Position|