From 7a0ab2444d96365a7aec2c55a4e470513d8e4a10 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 10 Oct 2002 11:06:42 +0000 Subject: 17794: fix bugs with tied parameters --- Src/builtin.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index 95f3b6f57..d36b697bc 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2116,6 +2116,11 @@ bin_typeset(char *name, char **argv, Options ops, int func) zerrnam(name, "can't tie a variable to itself", NULL, 0); return 1; } + if (strchr(asg0.name, '[') || strchr(asg->name, '[')) { + unqueue_signals(); + zerrnam(name, "can't tie array elements", NULL, 0); + return 1; + } /* * Keep the old value of the scalar. We need to do this * here as if it is already tied to the same array it -- cgit 1.4.1