diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2024-04-06 00:19:53 +0200 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2024-04-07 16:05:39 +0200 |
commit | a66e92918568881af110a3e2e3018b317c054e4a (patch) | |
tree | ee774a6940d15ceeda3b70525ed87d373ccee098 /Src | |
parent | 49c6978dbbb717847344e7cef99e4ee26f56d234 (diff) | |
download | zsh-a66e92918568881af110a3e2e3018b317c054e4a.tar.gz zsh-a66e92918568881af110a3e2e3018b317c054e4a.tar.xz zsh-a66e92918568881af110a3e2e3018b317c054e4a.zip |
52878: Fix ${foo:^bar} where bar is an associative array
Diffstat (limited to 'Src')
-rw-r--r-- | Src/subst.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c index f0d6c7a7b..a079672df 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -3475,6 +3475,9 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags, char *sval; zip = getaparam(s); if (!zip) { + zip = gethparam(s); + } + if (!zip) { sval = getsparam(s); if (sval) zip = hmkarray(sval); |