Re: New word splitting semantics for kvpair compound assignment
Zachary Santer <[email protected]>
| Newsgroups | gmane.comp.shells.bash.bugs |
|---|---|
| Message-ID | <CABkLJUKuMU5EuLCJowAzMLSA2jJJY8oBnyu3UbCBVrB+fV4j6g@mail.gmail.com> |
On Wed, Aug 19, 2026 at 9:19 AM Chet Ramey <[email protected]> wrote: > > Please test out the compound assignment statement behavior. See attached. $ ~/random/2026-08-19\ assoc\ compound\ assignment/generator CTRL-C to end test 59071 tests 0 errors I think you're good. > > I know that bash by default can't actually export indexed or > > associative arrays into the environment, but was that last bit just > > undocumented behavior, or was that not supposed to happen at all? > > You can set the export attribute, it just doesn't get added to the > environment. The manual doesn't list -a and -A as valid options for the export command. The manual says name[=word] for readonly and name[=value] for the three other declaration commands. export has ... outside the square brackets, and the other three have them inside.
generator
(application/octet-stream, 2.1 KB) - not displayed