From e732f1a132f3230783391843bacd02f8f1baf591 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Tue, 29 Sep 2009 20:02:12 +0200 Subject: [PATCH] Change grep -e to egrep and use -c instead of using wc. Signed-off-by: Eric Bollengier --- regress/tests/exclude-dir-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regress/tests/exclude-dir-test b/regress/tests/exclude-dir-test index ee420e170d..b60bb8b80b 100755 --- a/regress/tests/exclude-dir-test +++ b/regress/tests/exclude-dir-test @@ -79,7 +79,7 @@ fi # build/po is included 2 times with a different exclude file # we shouldn't see scripts and bin -nb=`grep -e 'build/po/fr.po$' $tmp/log3.out | wc -l` +nb=`egrep -c 'build/po/fr.po$' $tmp/log3.out` if [ $nb != 2 ]; then print_debug "ERROR: Should see fr.po two times" bstat=2 -- 2.39.5