Re: New word splitting semantics for kvpair compound assignment
Chet Ramey <[email protected]>
| Newsgroups | gmane.comp.shells.bash.bugs |
|---|---|
| Organization | ITS, Case Western Reserve University |
| Message-ID | <[email protected]> |
On 8/22/26 9:05 PM, Martin D Kealey wrote: > > On Thu, 20 Aug 2026 at 01:18, Chet Ramey <[email protected] > <mailto:[email protected]>> 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 [email protected] http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
(application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE----- wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCaoxnjQUDAAAAAAAKCRC7WGnwZOp0q3Vt AJ9MlFh3Scl3m9Asxo5vZsMGii/LUQCfQjhL4/F62eW3zYUSBWR4G1InKjo= =nQKE -----END PGP SIGNATURE-----