Re: [PATCH 01/12] tests: add initial bash completion tests
- From
John Keeping <john@keeping.me.uk>
- Date
- Apr 8, 2012, 10:28 UTC
- Message-ID
- <20120408102856.GB22648@river.lan>
- In-Reply-To
- <1333854479-23260-2-git-send-email-felipe.contreras@gmail.com>
On Sun, Apr 08, 2012 at 06:07:48AM +0300, Felipe Contreras wrote:
Show 10 quoted lines
> +test_completion ()
> +{
> + local -a COMPREPLY _words
> + local _cword
> + _words=( $1 )
> + test $# -gt 1 && echo "$2" > expected
> + (( _cword = ${#_words[@]} - 1 ))
> + _git && print_comp &&
> + test_cmp expected out
> +}Could you check that _git doesn't output anything to stderr here? I can't see any reason why a completion command should ever do so legitimately and it's generally annoying if one does.
-- John