From 9bd0a6e248302b51806d1d977987dee836ca9e1c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 17 Oct 2009 17:12:58 -0700 Subject: [PATCH] Fix tests/command/sample.sh test on Mingw. On Mingw pspp.list contains CR-LF line ends, so the "grep" command to skip blank lines needs to allow for that. --- tests/command/sample.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/command/sample.sh b/tests/command/sample.sh index 72cc1b5909..eb58b061e3 100755 --- a/tests/command/sample.sh +++ b/tests/command/sample.sh @@ -85,7 +85,7 @@ $SUPERVISOR $PSPP -o pspp.csv $TEMPDIR/sample.stat if [ $? -ne 0 ] ; then no_result ; fi activity="create head" -grep -v '^\ *$' $TEMPDIR/pspp.csv | head -1 > $TEMPDIR/head +grep -v '^[ ]*$' $TEMPDIR/pspp.csv | head -1 > $TEMPDIR/head if [ $? -ne 0 ] ; then no_result ; fi activity="extract data" -- 2.30.2