about summary refs log tree commit diff
path: root/Src/Zle
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 /Src/Zle
parent5fa91b111693fc629d225acb8a5b119a305c7d5d (diff)
downloadzsh-aa7003e0ca89881c693d9d5df1f5080d4ad9f570.tar.gz
zsh-aa7003e0ca89881c693d9d5df1f5080d4ad9f570.tar.xz
zsh-aa7003e0ca89881c693d9d5df1f5080d4ad9f570.zip
19840: vared takes one normal argument
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_main.c7
1 files changed, 1 insertions, 6 deletions
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),
 };