From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] Document ${(!)refname}
Date: Fri, 7 Jul 2023 15:45:29 +0900 [thread overview]
Message-ID: <1F241427-C6DE-496E-856F-8C900AA576BB@kba.biglobe.ne.jp> (raw)
In-Reply-To: <CAH+w=7bc+WNg+3=9e6koaQFwut+yWWa3ZCg4-HqKnYXm+X0iEA@mail.gmail.com>
> 2023/06/23 6:39、Bart Schaefer <schaefer@brasslantern.com>のメール:
>
> This documents workers/51509.
(snip)
> +item(tt(!))(
> +When the parameter being expanded is a named reference, the reference
> +string is substituted and thus the reference is em(not) resolved.
% typeset -n ptr=var
% echo $(\!t)ptr}
nameref
In this case "the reference string is substituted" seems to be not so
suitable. The flag ! always indicates
"the named reference itself, not its referent".
Probably something like the following,
"When the parameter being expanded is a named reference, do not
resolve to its referent but use its own value."
but not sure this is clear enough.
At the end of the subsection "Named References" in zshexpn(1)
(expn.yo:1614), there is a description of ${(t)ptr}.
How about adding a description of $(!t)ptr} here?
next prev parent reply other threads:[~2023-07-07 6:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-22 21:39 Bart Schaefer
2023-07-07 6:45 ` Jun T [this message]
2023-07-11 1:21 ` Bart Schaefer
2023-07-11 1:37 ` Bart Schaefer
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=1F241427-C6DE-496E-856F-8C900AA576BB@kba.biglobe.ne.jp \
--to=takimoto-j@kba.biglobe.ne.jp \
--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).