Thread (1 message) 1 message, 1 author, 2019-11-15

Re: [PATCH 21/27] t: define test_grep_return_success()

From: Junio C Hamano <hidden>
Date: 2019-11-15 05:26:39

Denton Liu [off-list ref] writes:
+# Calls grep but returns zero even if no matching lines are found.
+test_grep_return_success () {
+	grep "$@" || :
+}
It makes sense to have a helper like this, but the name is quite a
mouthful.  I wonder if we can call it with a shorter name, e.g.
"test_filter" or something.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help