about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-09-12 16:13:01 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-09-12 16:13:01 -0700
commit8e77fcb050ed09042cc2464f804ac023c0f88b42 (patch)
treed6215495fdbae83c181adda6b6bb7b2661dbfe16
parent6ff0628182ac74bbf22dc02edcc9a148f12767db (diff)
downloadzsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.gz
zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.xz
zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.zip
36522: unmetafy the argument of "zle -U"
-rw-r--r--ChangeLog2
-rw-r--r--Src/Zle/zle_thingy.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3aa4f208a..1ce47d7f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2015-09-12  Barton E. Schaefer  <schaefer@zsh.org>
 
+	* 36522: Src/Zle/zle_thingy.c: unmetafy the argument of "zle -U"
+
 	* 36509: Src/Modules/curses.c: allocate hash table nodes with
 	zshcalloc() to avoid garbage flag values
 
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c
index 7fd3a5941..da3a6d458 100644
--- a/Src/Zle/zle_thingy.c
+++ b/Src/Zle/zle_thingy.c
@@ -466,7 +466,7 @@ bin_zle_mesg(char *name, char **args, UNUSED(Options ops), UNUSED(char func))
 static int
 bin_zle_unget(char *name, char **args, UNUSED(Options ops), UNUSED(char func))
 {
-    char *b = *args, *p = b + strlen(b);
+    char *b = unmeta(*args), *p = b + strlen(b);
 
     if (!zleactive) {
 	zwarnnam(name, "can only be called from widget function");