PREV INDEX NEXT

Author: Unknown
Subject: nested NAME=WORD with same variable
Date: Wednesday, 21 Oct 2020, 01:43:53

The spec says:
The expansion of WORD takes place before the substitution...

Take ${a=${a=b}c}.

First, I would expand the WORD ${a=b}c -> bc. Now expand ${a=bc}. Since "a" already exists (a=b), I would expect the output to be "b". However, the staff solution outputs "bc". Why is this?
PREV INDEX NEXT