Fixed blank replacement
[pspp-builds.git] / tests / command / lag.sh
index 70d46e95606540c9a98cea51df1c319cbd8a315d..01fbc59276292ce4a23e184386f407fb42b91cb1 100755 (executable)
@@ -71,15 +71,14 @@ $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/lag.stat
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare result"
-perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
-diff -b  $TEMPDIR/pspp.list - <<EOF | perl -e 's/^\s*$//g'
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff -b  $TEMPDIR/pspp.list - <<EOF
 1.1 DATA LIST.  Reading 1 record from the command file.
 +--------+------+-------+------+
 |Variable|Record|Columns|Format|
 #========#======#=======#======#
 |W       |     1|  1-  1|F1.0  |
 +--------+------+-------+------+
-
 W        X        Y        Z
 - -------- -------- --------
 1      .        .        .