From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 82CB524811 for ; Fri, 19 Jan 2024 16:02:50 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1705676570; b=on/20k9lF5aZpyJh5bV7GFB3E0i71ucUN0Y+rCMo67bD8y+lhK9BPoHSlP56OW+PluvSZSBM9c 7cll+e9GuRzf1Gu8tqxZLOYL6zVaZwVj2+YCc22tHuU+Objla1SaIdqxVu7RxpeebcwB7K4kef 0dTpCCuzN6XrzvYYTJglqWktzbQZtOfFMzWXLGWItrZX8IzjjbxL8+i7TVFgs/6+NNg3F3fLAg AwfGOf9OkdK29HKOcUwYfJ6201h9jr39A8P1BrBLlLRnpRXtUR6BJTEjHOjDDQCLGvNn1xwpnx 8XR6qoPlfyWPS5Vk+kA/uYqp4JlR7hnu5k51JTEMHA/Y8w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f171.google.com) smtp.remote-ip=209.85.208.171; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1705676570; bh=t2u3VI+ym3BZPANrOgxZgIcnsTxt58dvP3mj6ZWUSZA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=RGmVnWXj0f2s38QyMxb0ZSXlOdizg+vkdtXs9G9IUMwePDqc9Pk1ouIA5+BYB3WHbPn0Ymy3cR wQWmLm3v5HdwLYgEjlKqpDke0oNNdd+4FsP6IT1d6nxo0LrT15J+/wOZV3Z7h2kBiFCSNZmnnf c225enG+So7u+413nKwjonjVwPqE7OqprFJc58t9v4cfWKmrVngwFEIz/Tm+DmTZl+VKcgCRaJ u1jRl4LBLfypm3zMyB1MN2LlmGLa4K4/7X/RTShaD13vdkcUNvah961cABGGJ1vyPz9F3dyMnS kS74IECYEEPE7xg0FxB/rwMi87m56/uP+w5UUZ5QRTXWCA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=t2u3VI+ym3BZPANrOgxZgIcnsTxt58dvP3mj6ZWUSZA=; b=fxqhqJCkeoBWhJFsC3Pv0Kisgd TbTSADjEEDxDpWsctObg/gJA7uVZ4Yc5F7Et861y4uu7dyzgSkFkfjGlOQEXbCN+63EaaUfRQY13v O/0viuhRagxwwf09ldFGgt2vyBRCGX3MFwVPDr4VYalFNNZuUP4ZrMZ59v0ogublbLX6+GL/6UUav /KOUnN82Ru0SCGFJL7tLE8j9YL9XXpQTB9QbarqLnbPHwJwch9zuaKWpDjhc4vuQX5ZH54TYbV0Xv yd1J8+G59uPCVOt5CBTnnm++yUBTJTsN6TwNrA5nH16ymDwcop1sNClY/LfwXu3P1pZiDvb75DGI7 nJuwpSsg==; Received: by zero.zsh.org with local id 1rQqOQ-00029A-7i; Fri, 19 Jan 2024 15:02:50 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f171.google.com) smtp.remote-ip=209.85.208.171; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f171.google.com ([209.85.208.171]:58472) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rQqNu-0001oZ-FS; Fri, 19 Jan 2024 15:02:18 +0000 Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2cddb0ee311so9788891fa.0 for ; Fri, 19 Jan 2024 07:02:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705676537; x=1706281337; darn=zsh.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=t2u3VI+ym3BZPANrOgxZgIcnsTxt58dvP3mj6ZWUSZA=; b=TPnV7VSzOtVSNI1XOLs2HMvn+fpOnJ7x9zhJY/dRu+TRyZcIewBc8jaqrhU2ZFr6xZ GuIMlQujnGITQTb0YnZaeTSPDIvwkKejgNbgv3A+TfxyyFn0PnX8jLqNER0EoCmHDfUu Mcf+1vWKEpyu0a0wLTmMoWKEU2sWeVwak7jjheodCSJ2prokso+NjPHX7AOU/LFOixYO IP0Z9PdK+feb7WZoTN+kmvfhbX6BqkiS+2+627EMjf7cOHmAFu09K01MoePG0p5r47LF fEID+E5vTxfCKi0Kk2WEz1gQ02jIOYlDR3OgG+9wvMJMdpsHdLSD6WKrhjgHi3aDb1Hr pPdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705676537; x=1706281337; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=t2u3VI+ym3BZPANrOgxZgIcnsTxt58dvP3mj6ZWUSZA=; b=mU6Muehau8gYbVSF2kacOTy1uOuG37p5O3wUNhxuJVIcbq8aDxUC8xF2VspecKmGmU VMOxWVjTc6+8J+JeJVCcfFzflhguIXlHlJbnpY5Tqe7jlosCVvqDu+aukJaesPhD9wX7 Fosh6jo6RekcLKOkqsEykfPSZLN0ckaZogYckhSw4NjHzYlN+wD/F7K8S8glXInRlWzR WXhgsZwkGBkYW7YUHcNzfafAh5fKC1mrRXGMdmLM6iI7v5WZX8HxwExKRYhOuQ8vNhLZ A1YPhFEp3mzv4kcRaPiUv8dXG6i4zk3miMf+hdMq/AR+p2d8ZvMkFCDSH5dRpcrExLsf 72Uw== X-Gm-Message-State: AOJu0YyP8mJX8I3q29V24EQk/2co6YjZ9bh6osixsCMNMzy9sx0dtE/t upIEl8iWIsGGklEbWA4ah6doNBYPjySyEBZb7nnUmemMtrfbwzNOOCkySs1Na4kzASe/PXy5F/4 B9zS8GjPbIt0n/M+2LMVmJ1rLQgMsmhYQs6Y= X-Google-Smtp-Source: AGHT+IFCz5wDS9DRh6JJfuZC/HiA0H/L6Z327vp+8m6szCVz6z0zzgKjgRrPXRSZP5Xs0hNS+bfxr3g8ntnRy94/nh0= X-Received: by 2002:a05:651c:1c9:b0:2cd:fa80:111d with SMTP id d9-20020a05651c01c900b002cdfa80111dmr722444ljn.164.1705676536902; Fri, 19 Jan 2024 07:02:16 -0800 (PST) MIME-Version: 1.0 References: <1743596511.1328269.1703089342052@mail.virginmedia.com> <1226059227.1330686.1703091321163@mail.virginmedia.com> <483108200.1333094.1703093446204@mail.virginmedia.com> In-Reply-To: From: "Mark J. Reed" Date: Fri, 19 Jan 2024 10:02:05 -0500 Message-ID: Subject: Re: [BUG] multibyte never set according to setopt/unsetopt output To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000001578ef060f4dc4d0" X-Seq: 52487 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --0000000000001578ef060f4dc4d0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E2=80=AFPM Mikael Magnusson wrote: > On 12/20/23, Peter Stephenson wrote: > >> On 20/12/2023 17:06 GMT Mikael Magnusson wrote: > >> On 12/20/23, Peter Stephenson wrote: > >> >> On 20/12/2023 16:44 GMT Bart Schaefer > >> >> 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 > > --=20 Mark J. Reed --0000000000001578ef060f4dc4d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Coming back a bit late to the thread I started a month ago= ...

Basically, because `multibyte` is on by default, the *`setopt` c= ommands=C2=A0behave as if there were instead an option with the inverted me= aning named `nomultibyte`, and it is that string rather than `multibyte` wh= ich shows up in the output of one or the other. (I suppose one difference b= etween 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 `mul= tibyte` option _is_ set.=C2=A0

Thanks=C2=A0for the sugge= stions for alternative ways to display the=C2=A0options. As=C2=A0far as I c= an tell, `kshoptionprint` just makes `setopt` produce the same output as `s= et -o`; I'm happy to just use `set -o` in that case. I used ksh for a l= ong time. :)


<= div dir=3D"ltr" class=3D"gmail_attr">On Wed, Dec 20, 2023 at 12:40=E2=80=AF= 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 outp= ut,
> unless I'm missing something.

For some reason I thought yours was sent in reply to mine, my
apologies for the confusion.

--
Mikael Magnusson



--
--0000000000001578ef060f4dc4d0--