grep portability fix: don't use "-e" or "-q"
[gitweb.git] / t / t3404-rebase-interactive.sh
index 049aa375381b5929d1f35b7316c3fe6a647e4f93..f09823106fa75f668291d94039746adac16b6880 100755 (executable)
@@ -149,8 +149,7 @@ test_expect_success 'stop on conflicting pick' '
        diff -u expect .git/.dotest-merge/patch &&
        diff -u expect2 file1 &&
        test 4 = $(grep -v "^#" < .git/.dotest-merge/done | wc -l) &&
-       test 0 = $(grep -ve "^#" -e "^$" < .git/.dotest-merge/git-rebase-todo |
-               wc -l)
+       test 0 = $(grep -c "^[^#]" < .git/.dotest-merge/git-rebase-todo)
 '
 
 test_expect_success 'abort' '