From 8fd44d50713cc51b6ca698fec5b1f90289ec4ba0 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 0dfd0778..fc856a4a 100755 --- a/tests/command/sample.sh +++ b/tests/command/sample.sh @@ -85,7 +85,7 @@ $SUPERVISOR $PSPP --testing-mode $TEMPDIR/sample.stat if [ $? -ne 0 ] ; then no_result ; fi activity="create head" -grep -v '^\ *$' $TEMPDIR/pspp.list | head -2 > $TEMPDIR/head +grep -v '^[ ]*$' $TEMPDIR/pspp.list | head -2 > $TEMPDIR/head if [ $? -ne 0 ] ; then no_result ; fi activity="extract data" -- 2.30.2