On 12/17/14 3:58 AM, konsolebox wrote: > On Mon, Dec 15, 2014 at 4:34 AM, Chet Ramey <chet.ra...@case.edu> wrote: >> It does implement `emulated behavior of normal assignments'. The question >> is whether or not it should do that after having had its arguments undergo >> one round of word expansion. > > After studying the code I realized that that's actually the only thing > we have to consider for changing. It turns out that the solution here > is to just not allow expanded arguments to have compound assignments. > This may break a little compatibility but I believe it's the only > proper solution for it.
Yes, if we decide to go that way, this is the place to change it. There are a few more things to do if we want to do more to unify the way that arguments to declare and assignment statements are handled. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/