From: Phil Pennock <hidden> Date: 2016-06-15 22:59:27
The bash completion pulled into zsh was being pulled in _as_ zsh, but
used patterns which relied on falling through as unhandled. In zsh
5.0.3 this no longer works, resulting in:
__git_complete_remote_or_refspec:33: bad pattern: +*
Fix by telling zsh to emulate sh while sourcing the bash config file,
which stickily preserves compatibility options in the function context.
This usage of "emulate" came in with zsh 4.3.10, released 2009-06-01.
Signed-off-by: Phil Pennock <redacted>
---
nb: I am not on the git mailing-list, please keep me CC'd.
I have read SubmittingPatches but let me know if I've missed something.
Fix applies (unmodified) to both master and maint.
Thanks.
contrib/completion/git-completion.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Felipe Contreras <hidden> Date: 2016-06-15 23:00:56
Phil Pennock wrote:
The bash completion pulled into zsh was being pulled in _as_ zsh, but
used patterns which relied on falling through as unhandled. In zsh
5.0.3 this no longer works, resulting in:
__git_complete_remote_or_refspec:33: bad pattern: +*
Fix by telling zsh to emulate sh while sourcing the bash config file,
which stickily preserves compatibility options in the function context.
This usage of "emulate" came in with zsh 4.3.10, released 2009-06-01.
I'm using 5.9.5 and I don't see any issue. Howe exactly have you
configured this script?
Signed-off-by: Phil Pennock <redacted>
---
nb: I am not on the git mailing-list, please keep me CC'd.
From: Felipe Contreras <hidden> Date: 2016-06-15 23:00:56
Felipe Contreras wrote:
Phil Pennock wrote:
quoted
The bash completion pulled into zsh was being pulled in _as_ zsh, but
used patterns which relied on falling through as unhandled. In zsh
5.0.3 this no longer works, resulting in:
__git_complete_remote_or_refspec:33: bad pattern: +*
Fix by telling zsh to emulate sh while sourcing the bash config file,
which stickily preserves compatibility options in the function context.
This usage of "emulate" came in with zsh 4.3.10, released 2009-06-01.
I'm using 5.9.5 and I don't see any issue. Howe exactly have you
configured this script?
I meant 5.0.5.
Anyway, I've tried with multiple versions of zsh and I'm able to
reproduce the issue by doing 'git push origin <tab>'. However, it seems
the issue was instroduced in 5.0.3, and fixed in 5.0.4, so I don't think
we should do anything on our side.
--
Felipe Contreras
From: Phil Pennock <hidden> Date: 2016-06-15 23:00:57
On 2014-04-30 at 05:00 -0500, Felipe Contreras wrote:
Felipe Contreras wrote:
quoted
Phil Pennock wrote:
quoted
The bash completion pulled into zsh was being pulled in _as_ zsh, but
used patterns which relied on falling through as unhandled. In zsh
5.0.3 this no longer works, resulting in:
__git_complete_remote_or_refspec:33: bad pattern: +*
Fix by telling zsh to emulate sh while sourcing the bash config file,
which stickily preserves compatibility options in the function context.
This usage of "emulate" came in with zsh 4.3.10, released 2009-06-01.
I'm using 5.9.5 and I don't see any issue. Howe exactly have you
configured this script?
I meant 5.0.5.
Anyway, I've tried with multiple versions of zsh and I'm able to
reproduce the issue by doing 'git push origin <tab>'. However, it seems
the issue was instroduced in 5.0.3, and fixed in 5.0.4, so I don't think
we should do anything on our side.
Correct: it was considered a regression and after I mailed the git list,
zsh changed the behaviour and put out 5.0.4 fairly shortly thereafter.
I don't think that 5.0.3 has taken root anywhere, so you should be good.
-Phil