Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Fixed k, v flags for P expansion flag with unquoted reference.



---
 Src/subst.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Src/subst.c b/Src/subst.c
index 730fcd2..4579812 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -2030,7 +2030,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
 
 	    if ((v && !v->isarr) || (!v && !isarr)) {
 		/* Reference is not an array. Just retrieve value. */
-		v = fetchvalue(&vbuf, &val, 0, 0);
+		v = fetchvalue(&vbuf, &val, 0, hkeys | hvals);
 	    } else if (v && v->isarr) {
 		/* Reference is an array, stored in v. Convert to val/aval. */
 		isarr = v->isarr;
-- 
1.6.2.5



Messages sorted by: Reverse Date, Date, Thread, Author