[PATCH v4 4/5] cmd: added support of FOR loop's rare var names (%%1), fixed expansion of outer var loop name inside inner loop