author | Mark Lodato <lodatom@gmail.com> | |
Thu, 28 Oct 2010 01:08:21 +0000 (21:08 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 28 Oct 2010 18:45:00 +0000 (11:45 -0700) | ||
commit | ca209065f3cc3462eb0ae6090f6b13f38aa2114c | |
tree | ce12954ca7304f23eaf091bc98b0127e9d75f1b7 | tree | snapshot |
parent | 7ebee44167fc25b975f5543472c851ab1840af1b | commit | diff |
completion: fix zsh check under bash with 'set -u'
Commit 06f44c3 (completion: make compatible with zsh) broke bash
compatibility with 'set -u': a warning was generated when checking
$ZSH_VERSION. The solution is to supply a default value, using
${ZSH_VERSION-}. Thanks to SZEDER Gábor for the fix.
Signed-off-by: Mark Lodato <lodatom@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commit 06f44c3 (completion: make compatible with zsh) broke bash
compatibility with 'set -u': a warning was generated when checking
$ZSH_VERSION. The solution is to supply a default value, using
${ZSH_VERSION-}. Thanks to SZEDER Gábor for the fix.
Signed-off-by: Mark Lodato <lodatom@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash | diff | blob | history |