mirror of
https://github.com/zsh-users/zsh
synced 2024-09-15 22:20:22 +00:00
2037: ${functions[foo]} shouldn't be unmetafied.
When passed back from the parameter-specific "get" handler it's still in the shell's internals, so remains metafied. This caused mayhem with UTF-8 characters in function bodies.
This commit is contained in:
parent
da603d0a00
commit
cba1d41ffc
|
@ -1,3 +1,8 @@
|
|||
2015-05-29 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 20237: Src/Modules/parameter.c: $unctions[foo] shouldn't be
|
||||
unmetafied when passed as parameter body.
|
||||
|
||||
2015-05-28 Daniel Hahler <zsh@thequod.de>
|
||||
|
||||
* 35098: Completion/Unix/Command/_git: provide --amend also with
|
||||
|
|
|
@ -410,11 +410,6 @@ getfunction(UNUSED(HashTable ht), const char *name, int dis)
|
|||
} else
|
||||
h = dyncat(start, t);
|
||||
zsfree(t);
|
||||
/*
|
||||
* TBD: Is this unmetafy correct? Surely as this
|
||||
* is a parameter value it stays metafied?
|
||||
*/
|
||||
unmetafy(h, NULL);
|
||||
|
||||
if (shf->redir) {
|
||||
t = getpermtext(shf->redir, NULL, 1);
|
||||
|
|
Loading…
Reference in a new issue