summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-04-27 15:16:13 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-04-27 15:16:13 +0000
commitaa7003e0ca89881c693d9d5df1f5080d4ad9f570 (patch)
tree9319358a8d559843c7ffbc04e5dfeea3cba010d8
parent5fa91b111693fc629d225acb8a5b119a305c7d5d (diff)
downloadzsh-aa7003e0ca89881c693d9d5df1f5080d4ad9f570.tar.gz
zsh-aa7003e0ca89881c693d9d5df1f5080d4ad9f570.tar.xz
zsh-aa7003e0ca89881c693d9d5df1f5080d4ad9f570.zip
19840: vared takes one normal argument
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_main.c7
2 files changed, 4 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 43f21c6ec..469675817 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-04-27  Peter Stephenson  <pws@csr.com>
 
+	* 19840: Src/Zle/zle_main.c: also, vared now only takes
+	one normal argument.
+
 	* 19837: Src/Zle/zle_main.c: fix 19733 which accidentally
 	removed the -e option to vared.
 
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index ee3dd1d5d..8a9a149b9 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1076,11 +1076,6 @@ bin_vared(char *name, char **args, Options ops, int func)
 	zwarnnam(name, "-%s ignored", type == PM_ARRAY ? "a" : "A", 0);
     }
 
-    /* check we have a parameter name */
-    if (!*args) {
-	zwarnnam(name, "missing variable", NULL, 0);
-	return 1;
-    }
     /* handle non-existent parameter */
     s = args[0];
     queue_signals();
@@ -1366,7 +1361,7 @@ zleaftertrap(Hookdef dummy, void *dat)
 
 static struct builtin bintab[] = {
     BUILTIN("bindkey", 0, bin_bindkey, 0, -1, 0, "evaM:ldDANmrsLRp", NULL),
-    BUILTIN("vared",   0, bin_vared,   1,  7, 0, "aAcehM:m:p:r:", NULL),
+    BUILTIN("vared",   0, bin_vared,   1,  1, 0, "aAcehM:m:p:r:", NULL),
     BUILTIN("zle",     0, bin_zle,     0, -1, 0, "aAcCDFgGIKlLmMNRU", NULL),
 };