From: Ben Pfaff Date: Sun, 18 Oct 2009 00:12:58 +0000 (-0700) Subject: Fix tests/command/sample.sh test on Mingw. X-Git-Tag: sav-api~215 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bd0a6e248302b51806d1d977987dee836ca9e1c;p=pspp 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. --- 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"