From 35b617afb498d692729ae0689f96991c4672d822 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 17 Oct 2002 09:11:33 +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 dd553cf1c..cb7c82052 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2006,6 +2006,11 @@ bin_typeset(char *name, char **argv, char *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