completion: More fixes to prevent unbound variable errors
authorTed Pavlic <redacted>
Wed, 11 Feb 2009 18:03:26 +0000 (13:03 -0500)
committerJunio C Hamano <redacted>
Wed, 11 Feb 2009 19:09:17 +0000 (11:09 -0800)
commit5c9cc64a4a608ab0bbd5eb5c8e405bfe050be309
treecdaefb022cd94498566ff311d8861b0c42be72bb
parente5dd864adfeb8b0176b31a132e972d7f7beff32a
completion: More fixes to prevent unbound variable errors

Several functions make use of "[-n ...]" and "[-z ...]". In many cases,
the variables being tested were declared with "local."

However, several __variables are not, and so they must be replaced with
their ${__-} equivalents.

Signed-off-by: Ted Pavlic <redacted>
Acked-by: Shawn O. Pearce <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.bash
git clone https://git.99rst.org/PROJECT