summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/params.yo2
-rw-r--r--Src/Modules/zutil.c2
-rw-r--r--Test/D04parameter.ztst9
4 files changed, 15 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a1a0e6875..c988d56f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-05-12  Peter Stephenson  <pws@csr.com>
 
+	* unposted: Doc/Zsh/params.yo, Src/Modules/zutil.c: fix typo
+	("zregesparse-guard").
+
 	* 27951: Doc/Zsh/expn.yo, Doc/Zsh/params.yo, Src/builtin.c,
 	Src/exec.c, Src/glob.c, Src/init.c, Src/params.c, Src/signals.c,
 	Src/Builtins/sched.c, Src/Modules/zpty.c, Src/Modules/zutil.c:
@@ -13130,5 +13133,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4976 $
+* $Revision: 1.4977 $
 *****************************************************
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index 55d5cda6a..817731fb0 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -806,7 +806,7 @@ code.
 item(tt(zpty))(
 Code executed by the tt(zpty) builtin from the tt(zsh/zpty) module.
 )
-item(tt(zregesparse-guard))(
+item(tt(zregexparse-guard))(
 Code executed as a guard by the tt(zregexparse) command from the
 tt(zsh/zutil) module.
 )
diff --git a/Src/Modules/zutil.c b/Src/Modules/zutil.c
index 76ca92f79..3c71edfa7 100644
--- a/Src/Modules/zutil.c
+++ b/Src/Modules/zutil.c
@@ -1279,7 +1279,7 @@ rmatch(RParseResult *sm, char *subj, char *var1, char *var2, int comp)
 	    }
 	    if (next->pattern && pattry(next->patprog, subj) &&
 		(!next->guard || (execstring(next->guard, 1, 0,
-					     "zregesparse-guard"), !lastval))) {
+					     "zregexparse-guard"), !lastval))) {
 		LinkNode aln;
 		char **mend;
 		int len;
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 13a7af2e4..4594e62fd 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -1219,3 +1219,12 @@
 >LOST
 >Subscript flags returning single values
 >STRING key= val=
+
+   print $zsh_eval_context[1]
+   [[ $ZSH_EVAL_CONTEXT = ${(j.:.)zsh_eval_context} ]] || print Not equal!
+   (( icontext = ${#zsh_eval_context} + 1 ))
+   contextfn() { print $(print $zsh_eval_context[icontext,-1]); }
+   contextfn
+0:$ZSH_EVAL_CONTEXT and $zsh_eval_context
+>toplevel
+>shfunc cmdsubst