From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8012 invoked by alias); 2 May 2012 10:43:06 -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: 30461 Received: (qmail 1709 invoked from network); 2 May 2012 10:43:04 -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; bh=6z/LByMkk02j06dsDbLINFSClSRejzcaHLmFTaQNcrg=; b=QQcz+kfkWg9uiNJ6UL87Y1BiZmrCMWp04/caLjlncs4PB29Hh5UVw1vzTSapb18kJf xtJvzXR/YIuqUjWt2OY06xhq+rkpedkkuLnOHzUWO4ov7HCEc/Fq6BPCEDCbXY1t/UEt 61Dbpo854Tv/0pcjJhHVFpiHY+LGvQom6zYS/7FxP3NDxE3k+RkekG6tBmuebAajWa1P CgGRftF1lUc/v99dPrBEwV7egYeKnKuRE5HoaYCgCnbt6p2FrR0zjc7x1+WZwRivnFqG gJwE7UGRQM5wVom0nq7zbslpzeu0FBJCO0g/m35HE6DLRBBXUGpdV93qx+rfbWkIJsf+ vRuQ== From: Mikael Magnusson To: zsh-workers@zsh.org Subject: PATCH: Add missing local -a match in promptinit Date: Wed, 2 May 2012 12:35:13 +0200 Message-Id: <1335954913-3709-1-git-send-email-mikachu@gmail.com> X-Mailer: git-send-email 1.7.10.GIT Got a surprising result when trying to help daniel on irc, % echo ${path/\/*\/(*)\/*/$match[1]} zefram zefram /opt/bin zefram /usr/bin /bin zefram /usr/sbin /sbin zefram zefram zefram zefram zefram --- Functions/Prompts/promptinit | 1 + 1 file changed, 1 insertion(+) diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit index 66e73a7..c29b76c 100644 --- a/Functions/Prompts/promptinit +++ b/Functions/Prompts/promptinit @@ -15,6 +15,7 @@ promptinit () { emulate -L zsh setopt extendedglob local ppath='' name theme + local -a match # Autoload all prompt_*_setup functions in fpath for theme in $^fpath/prompt_*_setup(N); do -- 1.7.10.GIT