From: Frank Terbeck Date: Tue, 5 Jan 2016 17:16:24 +0000 (+0100) Subject: Sync to zsh-lookup upstream repository X-Git-Tag: v0.12.5~1 X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=c1d264c913deb2af817e4c7f8f8705214fcc944b Sync to zsh-lookup upstream repository This fixes a bunch of warnings with zsh's new warn_create_global behaviour. --- diff --git a/usr_share_grml/zsh/functions/Lookup/lookupinit b/usr_share_grml/zsh/functions/Lookup/lookupinit index 802a9eb..b01551d 100644 --- a/usr_share_grml/zsh/functions/Lookup/lookupinit +++ b/usr_share_grml/zsh/functions/Lookup/lookupinit @@ -23,6 +23,10 @@ function lookup() { local -ix lookup_remote lookup_printout lookup_use_qh lookup_help local -ax args local -Ax lookup_communicate lu_parseopts_args opts + # Silence a few warnings for now. + # See http://www.zsh.org/mla/workers/2015/msg03364.html for details. + local -a match mbegin mend + local MATCH; integer MBEGIN MEND backend='-init-' lookup_ei='-main-'