completion: bash: improve function detection
commit810df0ea8ed00f31d372f3fd90c205d953aea1e6
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 30 Dec 2020 23:29:48 +0000 (30 17:29 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Jan 2021 23:25:56 +0000 (4 15:25 -0800)
tree4ccb17826290f963704c5d28f6818d6a6596610c
parent7f94b78ddabdb49cde32b088ca66b422e7cda628
completion: bash: improve function detection

 1. We should quote the argument
 2. We don't need two redirections
 3. A safeguard for arguments (-a) would be good

Suggested-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash