Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Fixed k, v flags for P expansion flag with unquoted reference.
- X-seq: zsh-workers 27549
- From: Michael Hwang <michael.a.hwang@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Fixed k, v flags for P expansion flag with unquoted reference.
- Date: Fri, 1 Jan 2010 11:46:39 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ieFWjg4GxPmZDgTLA+aiO+YrdGyhgkoJXPTTZPZF1N4=; b=fXCNMS8VKIEW0OSQNlUqtMbZumX/Qoxc7vmdDeC4KRzGIf6iBBOxZDam9rVOtFaaGA r6l20tGufADxemTy9J2f+LhUPURkvXv9n6vSaKPomX2Hfnk5BpDHj65cz/ehIE8Ikeh5 2x/MXR6iMux7g0CecRCHV7C5I7TuZy1bqfCaA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Pm7fAa9YRUa7yii3eqIlB38BRFen+NcCMBobvFkvbWSQt9Oiw2ef94PXsOnKeXmijj ads1HH1ZLcoy24uALbfnvSB1rwF51Y/w/krdWk/JVSTecvXvDMhz3q77UFjaOzZut7ji Vrsvg/FYE0k7SYc7p138SUZiSB7KgCnCLYnLw=
- In-reply-to: <1262363710-8573-2-git-send-email-michael.a.hwang@xxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1262363710-8573-1-git-send-email-michael.a.hwang@xxxxxxxxx> <1262363710-8573-2-git-send-email-michael.a.hwang@xxxxxxxxx>
Sorry. I sent this with git send-email, and for some reason it didn't
send the accompanying message. I guess it also didn't want to reply to
my other thread.
I made a mistake in the previous update I made to my P flag patch.
This remedies that problem. Again, the changes can be pulled from the
pflag branch of my GitHub repo (git://github.com/Nomexous/zsh.git).
Michael Hwang
On Fri, Jan 1, 2010 at 11:35 AM, Michael Hwang
<michael.a.hwang@xxxxxxxxx> wrote:
> ---
> 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