about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2003-09-25 07:37:13 +0000
committerWayne Davison <wayned@users.sourceforge.net>2003-09-25 07:37:13 +0000
commit084d6f5a2587f4fd892e3788ad05bfd03a97e630 (patch)
treeb152dc13c720a3129a68440cf11b0eda51404d59 /Src
parenteeb9ec471493312d44588026c18bd5440a3fd1eb (diff)
downloadzsh-084d6f5a2587f4fd892e3788ad05bfd03a97e630.tar.gz
zsh-084d6f5a2587f4fd892e3788ad05bfd03a97e630.tar.xz
zsh-084d6f5a2587f4fd892e3788ad05bfd03a97e630.zip
Fix the old-style typeset -T (without the new separator arg).
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 988a342fd..4df9ea51e 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -2171,7 +2171,7 @@ bin_typeset(char *name, char **argv, Options ops, int func)
 	    return 1;
 	}
 	on &= ~off;
-	if (!argv[1] || argv[3]) {
+	if (!argv[1] || (argv[2] && argv[3])) {
 	    zwarnnam(name, "-T requires names of scalar and array", NULL, 0);
 	    unqueue_signals();
 	    return 1;