zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-users@zsh.org
Subject: Re: Tagged parameters
Date: Tue, 15 Aug 2023 15:39:49 +0100 (BST)	[thread overview]
Message-ID: <1239829800.2332805.1692110389939@mail.virginmedia.com> (raw)
In-Reply-To: <e47b3bbb-2b58-a4b3-5654-904a7de71b3b@eastlink.ca>

On 15/08/2023 15:30 Ray Andrews <rayandrews@eastlink.ca> wrote:
> On 2023-08-15 01:27, Peter Stephenson wrote:
>> Saying they have "no special meaning to the shell" is perhaps not a
>> 100% helpful description. since the fact of just having this option
>> associated with them is itself "special" in the way shown above.
>
> Thanks Peter.  "tags have no special meaning to the shell" is 
> anti-information.  Perhaps something like: "When a parameter is tagged, 
> it changes in no way except that the command: 'typeset -t' will make a 
> list of all tagged parameters along with their values."

Yes, it's worth doing something... here's my go.

pws

diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 5eb9327..b8ce31a 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -2320,8 +2320,10 @@ readonly). Special variables that have been made readonly retain their value
 and readonly attribute when made local.
 )
 item(tt(-t))(
-Tags the named parameters.  Tags have no special meaning to the shell.
-This flag has a different meaning when used with tt(-f); see above.
+Tags the named parameters.  Tags only exist to mark the parameter for
+the user's own purposes: the set of tagged parameters can be queried
+using `tt(typeset -t)'.  They have no further special meaning to the
+shell.  This flag has a different meaning when used with tt(-f); see above.
 )
 item(tt(-u))(
 Convert the result to upper case whenever the parameter is expanded.


  reply	other threads:[~2023-08-15 14:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-15  5:51 Marlon Richert
2023-08-15  8:27 ` Peter Stephenson
2023-08-15 14:30   ` Ray Andrews
2023-08-15 14:39     ` Peter Stephenson [this message]
2023-08-15 15:16       ` Ray Andrews
2023-08-15 17:40         ` Lawrence Velázquez
2023-08-15 18:10           ` Ray Andrews
2023-08-15 22:41             ` Grant Taylor
2023-08-17 23:41               ` Clinton Bunch
2023-08-18  1:10                 ` Bart Schaefer
2023-08-18  4:15                   ` Ray Andrews

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=1239829800.2332805.1692110389939@mail.virginmedia.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-users@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).