about summary refs log tree commit diff
diff options
context:
space:
mode:
-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),
 };