zsh-workers
 help / color / mirror / code / Atom feed
* Re: [PATCH]: Revamped (P) expansion flag
@ 2010-01-01 16:35 Michael Hwang
  2010-01-01 16:35 ` [PATCH] Fixed k, v flags for P expansion flag with unquoted reference Michael Hwang
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Hwang @ 2010-01-01 16:35 UTC (permalink / raw)
  To: zsh-workers

I made a mistake with the last patch. This remedies that problem.

I'm using git send-email, so the patch should finally show up with the email.
But as always, the changes can be pulled from the pflag branch of my GitHub
repo (git://github.com/Nomexous/zsh.git).

Michael Hwang


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Fixed k, v flags for P expansion flag with unquoted reference.
  2010-01-01 16:35 [PATCH]: Revamped (P) expansion flag Michael Hwang
@ 2010-01-01 16:35 ` Michael Hwang
  2010-01-01 16:46   ` Michael Hwang
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Hwang @ 2010-01-01 16:35 UTC (permalink / raw)
  To: zsh-workers; +Cc: Michael Hwang

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fixed k, v flags for P expansion flag with unquoted  reference.
  2010-01-01 16:35 ` [PATCH] Fixed k, v flags for P expansion flag with unquoted reference Michael Hwang
@ 2010-01-01 16:46   ` Michael Hwang
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Hwang @ 2010-01-01 16:46 UTC (permalink / raw)
  To: zsh-workers

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@gmail.com> 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
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-01 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-01 16:35 [PATCH]: Revamped (P) expansion flag Michael Hwang
2010-01-01 16:35 ` [PATCH] Fixed k, v flags for P expansion flag with unquoted reference Michael Hwang
2010-01-01 16:46   ` Michael Hwang

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).