From: "Mark J. Reed" <markjreed@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: [BUG] multibyte never set according to setopt/unsetopt output
Date: Fri, 19 Jan 2024 10:02:05 -0500 [thread overview]
Message-ID: <CAA=-s3yXDgcK-hv434Xj9M+NA8e1PVikK6tRpqPPNj+COgF8dg@mail.gmail.com> (raw)
In-Reply-To: <CAHYJk3SC_J-mvUt9L2Qc6kEJwZmf3CFQBXWP+=GvHNaH+Sps1A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]
Coming back a bit late to the thread I started a month ago...
Basically, because `multibyte` is on by default, the *`setopt`
commands behave as if there were instead an option with the inverted
meaning named `nomultibyte`, and it is that string rather than `multibyte`
which shows up in the output of one or the other. (I suppose one difference
between the actual situation and the postulated `nomultibyte` option is
that the inversion is `multibyte` rather than *`nonomultibyte`.)
Also, I was misinterpreting the output of `unsetopt`; the presence of
`nomultibyte` in its output means that option is _not_ set, or in other
words, the `multibyte` option _is_ set.
Thanks for the suggestions for alternative ways to display the options.
As far as I can tell, `kshoptionprint` just makes `setopt` produce the same
output as `set -o`; I'm happy to just use `set -o` in that case. I used ksh
for a long time. :)
On Wed, Dec 20, 2023 at 12:40 PM Mikael Magnusson <mikachu@gmail.com> wrote:
> On 12/20/23, Peter Stephenson <p.w.stephenson@ntlworld.com> wrote:
> >> On 20/12/2023 17:06 GMT Mikael Magnusson <mikachu@gmail.com> wrote:
> >> On 12/20/23, Peter Stephenson <p.w.stephenson@ntlworld.com> wrote:
> >> >> On 20/12/2023 16:44 GMT Bart Schaefer <schaefer@brasslantern.com>
> >> >> wrote:
> >> Really? I get all options listed in the positive sense regardless of
> >> their state:
> >
> > Yours and mine are equivalent, yes, it's the various versions just
> > using shell builtins that don't seem to allow a no-no form of output,
> > unless I'm missing something.
>
> For some reason I thought yours was sent in reply to mine, my
> apologies for the confusion.
>
> --
> Mikael Magnusson
>
>
--
Mark J. Reed <markjreed@gmail.com>
[-- Attachment #2: Type: text/html, Size: 2667 bytes --]
next prev parent reply other threads:[~2024-01-19 15:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-20 16:04 Mark J. Reed
2023-12-20 16:22 ` Peter Stephenson
2023-12-20 16:44 ` Bart Schaefer
2023-12-20 16:54 ` Mikael Magnusson
2023-12-20 16:55 ` Peter Stephenson
2023-12-20 17:06 ` Mikael Magnusson
2023-12-20 17:30 ` Peter Stephenson
2023-12-20 17:40 ` Mikael Magnusson
2024-01-19 15:02 ` Mark J. Reed [this message]
2024-01-20 22:27 ` Bart Schaefer
2023-12-20 16:59 ` Mikael Magnusson
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='CAA=-s3yXDgcK-hv434Xj9M+NA8e1PVikK6tRpqPPNj+COgF8dg@mail.gmail.com' \
--to=markjreed@gmail.com \
--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).