Re: $PATH pollution and t9902-completion.sh
- From
Jeff King <peff@peff.net>
- Date
- Dec 20, 2012, 20:01 UTC
- 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:
Show 7 quoted lines
> 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