From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: PATCH: pws-19: minor syntactic innovation
Date: Mon, 31 May 1999 22:41:00 +0000 [thread overview]
Message-ID: <990531224100.ZM8919@candle.brasslantern.com> (raw)
In-Reply-To: <9905231515.AA16080@ibmth.df.unipi.it>
On May 23, 5:15pm, Peter Stephenson wrote:
} Subject: PATCH: pws-19: minor syntactic innovation
}
} Just thought of a trivial way to take a lot of grief out of parameter
} substitution. This patch makes the following valid:
}
} ${${${${(f)"$(typeset)"}:#*local *\=*}%%\=*}##* }
OK, the patch is straightforward to adapt and the results seem to be the
same in 3.0.6-pre-3 and 3.1.5-pws-20.
A few questions come up, however:
What's the parse of something like ${(f)"${"$(typeset)"}"} ? It doesn't
seem to be the `obvious' one -- it appears that the quoted strings are
actually nesting, because of the enclosing braces, which is something
pretty radically new. (I may be wrong.) Is this a good thing?
What's the right way to document this change, including odd stuff like
the above?
Should the FAQ recommend using this form in some circumstances because
of the (@) change in 3.1.5?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~1999-05-31 22:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-23 15:15 Peter Stephenson
1999-05-29 8:31 ` Bart Schaefer
1999-05-31 22:41 ` Bart Schaefer [this message]
1999-06-01 6:23 ` Andrej Borsenkow
1999-06-01 8:21 ` Peter Stephenson
1999-06-01 12:52 ` Andrej Borsenkow
1999-06-01 9:56 ` PATCH: pws-19: document " Peter Stephenson
1999-06-01 17:44 ` Bart Schaefer
1999-06-02 8:03 ` Peter Stephenson
1999-06-02 8:44 ` sh compatibility " Andrej Borsenkow
1999-06-02 8:30 ` Peter Stephenson
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=990531224100.ZM8919@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=zsh-workers@sunsite.auc.dk \
/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).