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 11:02:38 -0400

On Fri, Aug 21, 2026 at 8:50 AM Chet Ramey <chet.ramey@case.edu> wrote:
>
> On 8/21/26 7:49 AM, Zachary Santer wrote:
> >
> > The manual doesn't list -a and -A as valid options for the export command.
>
> It doesn't seem worth it, since you can't put them in the environment,
> does it?

I'm with you there, but I think the command should at least print a
warning when it's provided an indexed or associative array as an
argument.

I assume POSIX is telling you that all the declaration commands need
to get the same special treatment by the parser, which means the
parser is recognizing the -a and -A options. If it were me, I'd still
have export error out and not have the variable assignment(s) persist.



reply via email to

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