This is a rewrite of a series I sent earlier [1]. Which was a response to a false positive when applying Junio's suggestion to a series written by Ævar [2]. 1: https://lore.kernel.org/git/20210421104102.3409-1-congdanhqx@xxxxxxxxx/ 2: https://lore.kernel.org/git/87r1j42ffz.fsf@xxxxxxxxxxxxxxxxxxx/ Đoàn Trần Công Danh (4): test-lib-functions: introduce test_line_count_cmd t6402: use find(1) builtin to filter instead of grep t6400: use test_line_count_cmd to count # of lines in stdout t6402: use test_line_count_cmd to count # of lines in stdout t/t6400-merge-df.sh | 16 ++--- t/t6402-merge-rename.sh | 132 +++++++++++++++++++--------------------- t/test-lib-functions.sh | 64 +++++++++++++++++++ 3 files changed, 134 insertions(+), 78 deletions(-) -- 2.32.0.278.gd42b80f139