1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-22 13:21:27 +01:00

38586: Metafication problem with $functions

If treated as a complete associative array or scanned (retrieving
individual values was not affected), it incorrectly unmetafied
the value so multibyte characters got confused.

Add test.
This commit is contained in:
Peter Stephenson 2016-06-03 10:28:03 +01:00
parent f84a5da8c2
commit dcffad8326
3 changed files with 15 additions and 5 deletions

View file

@ -487,11 +487,6 @@ scanfunctions(UNUSED(HashTable ht), ScanFunc func, int flags, int dis)
strcat(pm.u.str, " \"$@\"");
} else
pm.u.str = dyncat(start, t);
/*
* TBD: Is this unmetafy correct? Surely as this
* is a parameter value it stays metafied?
*/
unmetafy(pm.u.str, NULL);
zsfree(t);
if (shf->redir) {