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:
Peter Stephenson 2015-05-29 12:17:18 +01:00
parent da603d0a00
commit cba1d41ffc
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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);