Re: No word splitting for assignment-like expressions in compound assignment

2020-07-27 Thread Alexey Izbyshev
On 2020-07-27 10:06, Lawrence Velázquez wrote: On Jul 27, 2020, at 1:31 AM, Dale R. Worley wrote: Interesting. The documentation for 4.2.53(1) says this about parameter assignments generally, with no special rules for compound assignments: All values undergo tilde expansion, para

No word splitting for assignment-like expressions in compound assignment

2020-07-23 Thread Alexey Izbyshev
Hello! I have a question about the following behavior: $ Z='a b' $ A=(X=$Z) $ declare -p A declare -a A=([0]="X=a b") $ A=(X$Z) $ declare -p A declare -a A=([0]="Xa" [1]="b") I find it surprising that no word splitting is performed in the first compound assignment. I realize that skipping word