bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New word splitting semantics for kvpair compound assignment


From: Chet Ramey
Subject: Re: New word splitting semantics for kvpair compound assignment
Date: Mon, 24 Aug 2026 11:47:25 -0400
User-agent: Mozilla Thunderbird

On 8/22/26 9:05 PM, Martin D Kealey wrote:

On Thu, 20 Aug 2026 at 01:18, Chet Ramey <chet.ramey@case.edu <mailto:chet.ramey@case.edu>> wrote:

    OK. It's enabled by default.


When creating a new option, how is the default chosen, between near equivalents:

  * shopt -s kvpair_split
  * shopt -u no_kvpair_split

It's not a hard and fast rule. In this case, the new option directly
reflects the behavior change: we are now splitting words in compound
key-value pair assignments.

This is pretty common: localvar_inherit, inherit_errexit, and so on.

The default is chosen independently. In this case, the consensus is that
the old behavior is simply not useful (or not useful enough), so the
default is `on'.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]