From: Junio C Hamano Date: Mon, 01 May 2017 23:25:41 GMT Subject: Re: [PATCHv2 0/3] Make diff plumbing commands respect the indentHeuristic. Message-ID: In-Reply-To: <20170501051528.tpw3zlcpercdwdln@sigill.intra.peff.net> Jeff King writes: > PS Outside of our test scripts, I'd probably just have written: > > perl -lpe 'print "extra line" if $. == 2' > > I think we have traditionally preferred sed/awk to perl, but given > the heavy use of vanilla perl elsewhere in the test suite, I think > that is maybe just superstition at this point. I would have avoided sed with 'a', 'i' and 'c' in one-liners myself, and a Perl script like the above would probably have been my choice.