replaced busted sed substitution with functioning perl substitutions
authorJason Stover <jhs@math.gcsu.edu>
Fri, 7 Oct 2005 20:37:52 +0000 (20:37 +0000)
committerJason Stover <jhs@math.gcsu.edu>
Fri, 7 Oct 2005 20:37:52 +0000 (20:37 +0000)
tests/command/autorecod.sh

index 4b51f52434db2bf77fb38c1d1eafba361c1f4f71..2ebdc6c758af1340d40968b393a70611350e05da 100755 (executable)
@@ -81,7 +81,8 @@ $SUPERVISOR $here/../src/pspp    -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="test output"
-diff -b $TEMPDIR/pspp.list - <<EOF | sed -e 's/^[\t ]*$//'
+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 1 record from the command file.
 +--------+------+-------+------+
 |Variable|Record|Columns|Format|