From: Jeff King Date: Thu, 20 Dec 2012 20:01:09 GMT Subject: Re: $PATH pollution and t9902-completion.sh Message-ID: <20121220200109.GC21785@sigill.intra.peff.net> In-Reply-To: <7vobho4hxa.fsf@alter.siamese.dyndns.org> On Thu, Dec 20, 2012 at 11:55:45AM -0800, Junio C Hamano wrote: > The beginning of such a change may look like the attached patch. > [...] > +test_fully_contains () { > + sort "$1" >expect.sorted && > + sort "$2" >actual.sorted && > + test $(comm -23 expect.sorted actual.sorted | wc -l) = 0 > +} I like the direction. I suspect test_fully_contains could be used in a lot of other places, too. -Peff