Re: No word splitting for assignment-like expressions in compound assign
From:
Greg Wooledge
Subject:
Re: No word splitting for assignment-like expressions in compound assignment
Date:
Mon, 27 Jul 2020 07:38:42 -0400
User-agent:
Mutt/1.10.1 (2018-07-13)
On Mon, Jul 27, 2020 at 01:31:32AM -0400, Dale R. Worley wrote:
> So it seems like the word splitting in "A=(X$Z)" is incorrect.
If the documentation doesn't support word splitting in that case,
then it's the documentation that will need to change, not the shell.
Word splitting in that context is *frequently* used in scripts. Never
mind the fact that it's dangerous and wrong -- people use it, a lot.
A change to the shell that would stop it from occurring would break
countless scripts.