Fixed blank replacement
[pspp] / tests / command / sysfiles.sh
index 4dca4eaaf18437e760df74cf936ba13bc31d237c..1ec5718c22342c66d78768bc942e03655644ff3d 100755 (executable)
@@ -79,8 +79,8 @@ $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare output"
-perl -pi -e 's/^\s*\$//g' $TEMPDIR/pspp.list
-diff -b  -w $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b  -w $TEMPDIR/pspp.list - << EOF
 variable001 variable002 variable003 variable004
 ----------- ----------- ----------- -----------
        1.00        1.00        1.00        2.00  
@@ -91,7 +91,6 @@ variable001 variable002 variable003 variable004
        2.00        1.00        2.00      22.00 
        2.00        2.00        1.00       1.00 
        2.00        2.00        2.00       3.00 
-
 EOF
 if [ $? -ne 0 ] ; then fail ; fi