zsh-users
 help / color / mirror / code / Atom feed
From: "Lawrence Velázquez" <larryv@zsh.org>
To: zsh-users@zsh.org
Subject: Re: manual
Date: Thu, 22 Dec 2022 01:31:01 -0500	[thread overview]
Message-ID: <05989f02-59f4-49cf-b766-39fda9a5154a@app.fastmail.com> (raw)
In-Reply-To: <4bb64d1b-f21f-35e3-3573-88e7dafe6d4c@eastlink.ca>

On Wed, Dec 21, 2022, at 9:04 AM, Ray Andrews wrote:
> Yabut they sent you to the head of an entire nother section of the 
> manual.  Avoiding an entire block of duplication could be OK but say 
> something like: "There are many other 'set' switches that are duplicated 
> in/for the 'setopt' command (q.v.) which you can read just below this 
> entry."

It already says where to look.

	For the meaning of the other flags, see zshoptions(1).


>> with "set" and another for the long names for "set -o".
> Ah!  Another thing I missed.  It's far from clear that they're even 
> talking about single-letter options.  Why not say that?

That wouldn't hurt, but zshoptions(1) goes into this at some length.

	Some options also have one or more single letter names.
	There are two sets of single letter options: one used by
	default, and another used to emulate sh/ksh (used when the
	SH_OPTION_LETTERS option is set).  The single letter options
	can be used on the shell command line, or with the `set',
	`setopt' and `unsetopt' builtins, as normal Unix options preceded
	by `-'.

	The sense of the single letter options may be inverted by
	using `+' instead of `-'.  Some of the single letter option
	names refer to an option being off, in which case the
	inversion of that name refers to the option being on.  For
	example, `+n' is the short name of `exec', and `-n' is the
	short name of its inversion, `noexec'.


> I spent about 
> two hours reading, experimenting, re-writing, trying to get every bit of 
> information out of that page and I missed 'set -A' (by itself) and 
> single letter options entirely.

The synopsis makes it quite clear that -A and +A can be used alone.

	set ... [ {+|-}A [ name ] ] ...

The square brackets indicate that the enclosed items are optional.
Thus the "name" option-argument is optional when using -A or +A,
and -A and +A are themselves optional.


-- 
vq


  reply	other threads:[~2022-12-22  6:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-20 22:41 manual Ray Andrews
2022-12-21  0:43 ` manual Lawrence Velázquez
2022-12-21  1:15   ` manual Ray Andrews
2022-12-21  1:44     ` manual Lawrence Velázquez
2022-12-21  4:15       ` manual Ray Andrews
2022-12-21  2:00 ` manual Daniel Shahaf
2022-12-21  4:12   ` manual Ray Andrews
2022-12-21  4:43   ` manual Bart Schaefer
2022-12-21 14:04     ` manual Ray Andrews
2022-12-22  6:31       ` Lawrence Velázquez [this message]
2022-12-22 14:20         ` manual Ray Andrews
2022-12-21  9:38   ` manual Lawrence Velázquez
2022-12-22  7:03 ` manual Lawrence Velázquez
2022-12-22 13:50   ` manual 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=05989f02-59f4-49cf-b766-39fda9a5154a@app.fastmail.com \
    --to=larryv@zsh.org \
    --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).