tests: use more POSIX shell features our test scripts
[platform/upstream/automake.git] / t / gcj3.sh
index a8ec120..36692d9 100755 (executable)
--- a/t/gcj3.sh
+++ b/t/gcj3.sh
@@ -31,7 +31,6 @@ END
 $ACLOCAL
 $AUTOMAKE
 
-num=`grep depcomp Makefile.in | wc -l`
-test $num -gt 1
+test $($FGREP -c depcomp Makefile.in) -gt 1
 
 :