From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 520 invoked by alias); 2 May 2012 10:48:27 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30462 Received: (qmail 5527 invoked from network); 2 May 2012 10:48:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.217.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=Q2HuUQG6KnsP2Kx1YpahHDWhtnIARtPzaN9diwfHrNo=; b=PHA8mIqseCVR5Z6DlrcOfuYDv2PmkTDDGC5CMUlnYIbuoXEQJGyaHk+2xpPNvKuBDc W6BDfPiHuKgO+1phhOo3yGkXXILd+QgNERqqwonnHU9uBZla6xVIy7uRy+vNM4n5Vofv aNiWWalRtFW9rJA2FGSGWWnSE6oBpYBxROy2BA9ekUC9nBGfW3+Zpj0cGPL4gO9qegP7 cL/nL5WsZX1JOojHUgk7ra3afea+sypm41gLygSP2ax489uvncdN0MX5Z/X32mDcTmyb je+9NQ9QrR1RzuuOxTVTZD4orxPkk936Luf9D5h8mQWmRewYNWzS5u2oL3PD4zAWgXQ1 CMzw== From: Mikael Magnusson To: zsh-workers@zsh.org Subject: PATCH: Fix some more missing locals for $match Date: Wed, 2 May 2012 12:48:12 +0200 Message-Id: <1335955692-4359-1-git-send-email-mikachu@gmail.com> X-Mailer: git-send-email 1.7.10.GIT In-Reply-To: <1335954913-3709-1-git-send-email-mikachu@gmail.com> References: <1335954913-3709-1-git-send-email-mikachu@gmail.com> Found by simple % grep -rl 'match\[' Functions There's a lot of missing ones in Completion/ in theory, but _main_complete locals it so it should be fine. --- Functions/VCS_Info/vcs_info_setsys | 1 + Functions/Zftp/zfcd_match | 1 + Functions/Zle/url-quote-magic | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Functions/VCS_Info/vcs_info_setsys b/Functions/VCS_Info/vcs_info_setsys index 1484464..7797279 100644 --- a/Functions/VCS_Info/vcs_info_setsys +++ b/Functions/VCS_Info/vcs_info_setsys @@ -7,6 +7,7 @@ setopt extendedglob typeset_silent local sys typeset -ga VCS_INFO_backends +local -a match VCS_INFO_backends=() diff --git a/Functions/Zftp/zfcd_match b/Functions/Zftp/zfcd_match index 16de5c8..d51c717 100644 --- a/Functions/Zftp/zfcd_match +++ b/Functions/Zftp/zfcd_match @@ -13,6 +13,7 @@ local ZFTP_VERBOSE=45 # should we redirect 2>/dev/null or let the user see it? local tmpf=${TMPPREFIX}zfcm$$ +local -a match if [[ $ZFTP_SYSTEM = UNIX* ]]; then # hoo, aren't we lucky: this makes things so much easier diff --git a/Functions/Zle/url-quote-magic b/Functions/Zle/url-quote-magic index 4e12253..1fd5eb2 100644 --- a/Functions/Zle/url-quote-magic +++ b/Functions/Zle/url-quote-magic @@ -60,7 +60,7 @@ # Use compsys for nested quoting analysis and command parsing. # Establish default values for styles, but only if not already set -local -a reply +local -a reply match zstyle -m ':url-quote-magic:\*' url-metas '*' || zstyle ':url-quote-magic:*' url-metas '*?[]^(|)~#{}=' -- 1.7.10.GIT