From 084d6f5a2587f4fd892e3788ad05bfd03a97e630 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 25 Sep 2003 07:37:13 +0000 Subject: Fix the old-style typeset -T (without the new separator arg). --- Src/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/builtin.c') 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; -- cgit v1.2.3