Made BSD diff compatible
[pspp] / tests / command / oneway.sh
index c86860900042366c805c272659d3ca20f63e5420..5de916748dcc3df0e52af83a40d54e083ffc5d02 100755 (executable)
@@ -20,6 +20,7 @@ cleanup()
        echo Not cleaning $TEMPDIR;
        return ; 
     fi
+    cd /
     rm -rf $TEMPDIR
 }
 
@@ -91,7 +92,8 @@ activity="run program"
 $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
-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|