author | Alex Merry <dev@randomguy3.me.uk> | |
Thu, 1 Sep 2011 13:47:31 +0000 (14:47 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 21 Mar 2012 17:02:39 +0000 (10:02 -0700) | ||
commit | 471dcfdbb23ad423168d928335bc36217f9e311d | |
tree | e90fde9dcb6886680985e13bd84f4878f10f1138 | tree | snapshot |
parent | 75f49651a1b947e2eadd2c831b30892c0f4565c8 | commit | diff |
contrib/completion: "local var=()" is misinterpreted as func-decl by zsh
Certain versions of zsh seems to treat
local var=()
as a function declaration, rather than an assignment of an empty array,
although its documentation does not suggest that this should be the case.
With zsh 4.3.15 on Fedora Core 15, this causes
__git_ps1 " (%s)"
to trigger an error message:
local:2: command not found: svn_url_pattern
when GIT_PS1_SHOWUPSTREAM="auto".
Signed-off-by: Alex Merry <dev@randomguy3.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Certain versions of zsh seems to treat
local var=()
as a function declaration, rather than an assignment of an empty array,
although its documentation does not suggest that this should be the case.
With zsh 4.3.15 on Fedora Core 15, this causes
__git_ps1 " (%s)"
to trigger an error message:
local:2: command not found: svn_url_pattern
when GIT_PS1_SHOWUPSTREAM="auto".
Signed-off-by: Alex Merry <dev@randomguy3.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash | diff | blob | history |