Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Add missing local -a match in promptinit
- X-seq: zsh-workers 30461
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Add missing local -a match in promptinit
- Date: Wed, 2 May 2012 12:35:13 +0200
- 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==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author