From: Torsten Bögershausen Date: Sat, 09 Dec 2017 14:46:07 GMT Subject: Re: What's cooking in git.git (Dec 2017, #01; Mon, 4) Message-ID: <20171209144607.GA6443@tor.lan> In-Reply-To: <20171207213312.GB3693@zaya.teonanacatl.net> On Thu, Dec 07, 2017 at 04:33:12PM -0500, Todd Zullinger wrote: > Jeff Hostetler wrote: > >I'm looking at t5616 now on my mac. > >Looks like the MAC doesn't like my line counting in the tests. > >I'll fix in my next version. > [] > | sort >expect_2.oids && > - test "$(wc -l + test_line_count = 8 expect_2.oids && > git -C src blame master -- file.1.txt >expect.blame > ' The problem seems to be the '"' around wc, this would work: test $(wc -l ) { /^\s*declare\s+/ and err 'arrays/declare not portable'; /^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)'; /\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)'; + /\bwc -l.*"\s*=/ and err '`"$(wc -l)"` is not portable, please use `$(wc -l)`'; /\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && expo