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: Zachary Santer
Subject: Re: New word splitting semantics for kvpair compound assignment
Date: Fri, 21 Aug 2026 07:49:42 -0400

On Wed, Aug 19, 2026 at 9:19 AM Chet Ramey <chet.ramey@case.edu> 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.

Attachment: generator
Description: Binary data


reply via email to

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