zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Globbing symlinks-to-${glob_qualifier}
Date: Wed, 18 Aug 2021 10:23:44 -0700	[thread overview]
Message-ID: <CAH+w=7YF_Miu+73sS3CtkuPMwPshObsyCrHOWq_-9u68a0L+Dw@mail.gmail.com> (raw)
In-Reply-To: <31f78c80-2cc8-db5f-659f-d9d27002781c@eastlink.ca>

On Wed, Aug 18, 2021 at 9:48 AM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> This is a half baked musing as much as a question, but would it not be
> inevitable that some of these glob options

Note that the ones mentioning "global" are not glob options, and
"globcomplete" is a completion option rather than a globbing one.

> ... must contradict each other?  Options are always on/off, but wouldn't
> the logic of some of these settings be more of a 'radio button' sort of
> thing

Yes, there are a few cases where turning on option X causes option Y
to be ignored.  I think those cases are all properly documented, but
extra eyeballs on that sort of thing are never amiss.

There are two reasons we don't want to resort to having "radio button"
option behavior:
(1) The internals use 0/1 bitflags, and using multi-values would be
both a lot of code changes and use more memory.
(2) If you need to locally change X, it's not necessary to
save/restore any other state of Y that might interact with it.  A
prime example of this is "noglob" which obviously disavows a whole
fleet of other options, many of which are not otherwise mutually
exclusive.


  reply	other threads:[~2021-08-18 17:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-18  3:27 Zach Riggle
2021-08-18  3:57 ` Daniel Shahaf
2021-08-18  4:02   ` Bart Schaefer
2021-08-18 13:10     ` Zach Riggle
2021-08-18 15:24       ` Bart Schaefer
2021-08-18 16:48         ` Ray Andrews
2021-08-18 17:23           ` Bart Schaefer [this message]
2021-08-18 17:55             ` Ray Andrews
2021-08-18 22:28               ` Which options are really doing anything (Re: Globbing symlinks-to-${glob_qualifier}) Bart Schaefer
2021-08-18 23:27                 ` Ray Andrews
2021-08-19  2:32       ` Globbing symlinks-to-${glob_qualifier} Zach Riggle
2021-08-19  4:38         ` Lawrence Velázquez
2021-08-19 13:23           ` Daniel Shahaf
2021-08-19 13:25           ` Daniel Shahaf
2021-08-19 14:38             ` Ray Andrews
2021-08-19 13:54           ` Daniel Shahaf
2021-08-19  4:40         ` 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='CAH+w=7YF_Miu+73sS3CtkuPMwPshObsyCrHOWq_-9u68a0L+Dw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=rayandrews@eastlink.ca \
    --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).