From: Junio C Hamano Date: Mon, 09 Apr 2012 19:58:13 GMT Subject: Re: [PATCH 01/12] tests: add initial bash completion tests Message-ID: <7vpqbgvfsa.fsf@alter.siamese.dyndns.org> In-Reply-To: <20120408110642.GB21217@sigill.intra.peff.net> Jeff King writes: > On Sun, Apr 08, 2012 at 05:30:02AM -0500, Jonathan Nieder wrote: > >> > This test fails for me. The problem is that I have other git-f* programs >> > in my PATH >> [...] >> Is there some reason we care about the exact list of completions for >> "git f"? >> [...] >> Maybe it would make sense to check a few representative items. >> >> # builtin >> grep "^fetch\$" out && > > I think your approach (to stop worrying about stopping pollution from > the environment, and start being more specific in what the tests care > about) is much saner than the snippet I posted. I have to agree with that; it might give unexpeceted results if the user has a $HOME/bin/git-update-index or something, though.