diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-10-17 09:11:33 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-10-17 09:11:33 +0000 |
commit | 35b617afb498d692729ae0689f96991c4672d822 (patch) | |
tree | 20b7896a05a820a82924db78e31e7d011a6ae3a2 /Src/builtin.c | |
parent | 4aea39d960ea29da0c68f9d5f8d089a9be2dafab (diff) | |
download | zsh-35b617afb498d692729ae0689f96991c4672d822.tar.gz zsh-35b617afb498d692729ae0689f96991c4672d822.tar.xz zsh-35b617afb498d692729ae0689f96991c4672d822.zip |
17794: fix bugs with tied parameters
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |