RE: [PATCH] zsh completion: 5.0.3 compat, use emulate
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 30, 2014, 06:03 UTC
- Message-ID
- <53609249b388d_597a125b3084d@nysa.notmuch>
- In-Reply-To
- <EMXW5CZ-001FUQ-3S@ilmenite.field.spodhuis.org>
Phil Pennock wrote:
Show 9 quoted lines
> 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 <pdp@spodhuis.org> > --- > nb: I am not on the git mailing-list, please keep me CC'd.
No need to say that. This is a sane mailing list with doesn't do reply-to munging[1], so you are Cc'ed by default, in essentially al MUA's out there.
[1] http://felipec.wordpress.com/2010/08/03/avoid-reply-to-munging-mail-as-mail-was-meant-to-be/
-- Felipe Contreras