PREV INDEX NEXT

Author: Unknown
Subject: Assignment when $NAME is defined
Date: Monday, 12 Oct 2020, 20:09:18

When i execute the command sequences

% /c/cs323/Hwk3/mcBash
(1)$ ${ONE=1}
>> 1
(2)$ ${TWO=${ONE=${ZERO=0}}}
>> 1
(3)$ $TWO
>> 1

It seems TWO is still being assigned the value of ONE, even though ONE was previously defined. However the spec says "However, if NAME exists, then during the expansion mcBash must suppress any assignments to environment variables...", so I was expecting TWO to have no value, since the assignment to ONE will cause assignments to be suppressed. Can you please explain this?
PREV INDEX NEXT