From: Michael Hwang <michael.a.hwang@gmail.com>
To: zsh-workers@zsh.org
Cc: Michael Hwang <michael.a.hwang@gmail.com>
Subject: [PATCH] Fixed k, v flags for P expansion flag with unquoted reference.
Date: Fri, 1 Jan 2010 11:35:10 -0500 [thread overview]
Message-ID: <1262363710-8573-2-git-send-email-michael.a.hwang@gmail.com> (raw)
In-Reply-To: <1262363710-8573-1-git-send-email-michael.a.hwang@gmail.com>
---
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
next prev parent reply other threads:[~2010-01-01 16:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-01 16:35 [PATCH]: Revamped (P) expansion flag Michael Hwang
2010-01-01 16:35 ` Michael Hwang [this message]
2010-01-01 16:46 ` [PATCH] Fixed k, v flags for P expansion flag with unquoted reference Michael Hwang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1262363710-8573-2-git-send-email-michael.a.hwang@gmail.com \
--to=michael.a.hwang@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).