diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2003-09-25 07:37:13 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2003-09-25 07:37:13 +0000 |
commit | 084d6f5a2587f4fd892e3788ad05bfd03a97e630 (patch) | |
tree | b152dc13c720a3129a68440cf11b0eda51404d59 | |
parent | eeb9ec471493312d44588026c18bd5440a3fd1eb (diff) | |
download | zsh-084d6f5a2587f4fd892e3788ad05bfd03a97e630.tar.gz zsh-084d6f5a2587f4fd892e3788ad05bfd03a97e630.tar.xz zsh-084d6f5a2587f4fd892e3788ad05bfd03a97e630.zip |
Fix the old-style typeset -T (without the new separator arg).
-rw-r--r-- | Src/builtin.c | 2 |
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; |