[1.1.71] - 2026-11-14
Fixed
- E010 reports a FOR that starts after
&,&&,||, or|on a caret-joined line, such asecho ready & ^followed byfor %%A in (a) echo %%A. A space beforeforis still escaped, so that word is not a FOR command.2>&1stays a redirection - E001 and E040 no longer treat
(afterecho ^, or afterdo echo, as a block parenthesis. That includes an indented(on the next line.do (,else if, and a real IF or FOR block parenthesis are unchanged - A
"escaped by the previous line's caret does not open a quote, so E009 stays quiet and the block scan still sees the rest of the command. A label ending in^still owns the following lines when one starts with".r^/emis still a remark, so a later)is not E001 do remon a continued FOR is a remark, so the group after it is not E001.if 1==1 (^followed byrem note)keeps that)inside the remark- E010 no longer reports a caret-joined FOR whose DO keyword is on a later physical line. That includes a FOR /F backquoted command, a list value that looks like
remand continues with another caret, a DO keyword split asd^/o, and a FOR keyword split asf^/orwhen the set continues with( - DO has to be the first token after the IN set:
doinside the set,echo do, anddo(without a space do not count. An apostrophe inO'Brienor at the start of'Brien, a backtick, and a)inside"a)b"or"a""b)c"do not hide that DO - The first character of each continued line is escaped, so
do^followed by a space andecho, or by(,),", or^, and& remare not syntax. A later& remon that continued line still ends the command, as doesdo remonce the joined FOR is read as one command, including when DO is split asd^/o rem (reminside the set is list text, not a remark. An extra(in the set does not nest, sodo remafter that)still ends the command, including whenremis split across carets asr^/e^/m. A remark that mentionsin (...)is still a remark- A quoted
) do reminside the set is a value, so that caret still joins, including when the quote is on the FOR's first line. A)inside a FOR /F backtick command still closes the set. A FOR that still has no DO after those lines are joined is still E010
Changed
- The MegaLinter install pin is 1.1.71