Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ${(P)${foo}} (Re: Associative array ordering)
- X-seq: zsh-workers 5199
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: ${(P)${foo}} (Re: Associative array ordering)
- Date: Wed, 3 Feb 1999 10:55:43 +0100 (MET)
- In-reply-to: "Bart Schaefer"'s message of Wed, 3 Feb 1999 00:39:08 -0800
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> Let's go this way: Implement ${(P)foo}, the same as ${(P)${foo}} where
> the inner ${...} has no flags or modifiers, and leave ${!foo} undefined
> until we do real namerefs (if we ever do).
Yep.
Bye
Sven
--- os/subst.c Wed Feb 3 10:55:01 1999
+++ Src/subst.c Wed Feb 3 10:48:21 1999
@@ -991,6 +991,12 @@
copied = 1;
*s = sav;
v = (Value) NULL;
+ } else if (aspar) {
+ if ((v = getvalue(&s, 1))) {
+ val = idbeg = getstrvalue(v);
+ subexp = 1;
+ } else
+ vunset = 1;
}
if (!subexp || aspar) {
char *ov = val;
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author