Commit 8f282944 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

cmd: Reset ignoreBracket when moving to the next line.

parent 01fab4c4
......@@ -1276,9 +1276,21 @@ if ""=="" for %%i in (A) DO (echo %%i)
if not ""=="" for %%i in (B) DO (echo %%i)
echo ------------ Testing if/set ------------
rem a left parenthesis is part of the value, not the start of an 'if' block
set x=C:\Program Files (x86)
if ""=="" set y=%x%\dummy
echo %y%
if 1 == 1 set z= (
echo '%z%'
rem 'set' in one-line 'if' statement does not interfere with other 'if' blocks
setlocal enableDelayedExpansion
if 1 == 1 (
if 1 == 1 set z=zeta
if 1 == 1 (
echo !z!
)
)
endlocal
echo --- Testing if + var subst in delayed expansion mode
setlocal enableDelayedExpansion
......
......@@ -928,6 +928,8 @@ x@space@
A
------------ Testing if/set ------------
C:\Program Files (x86)\dummy
' ('
zeta
--- Testing if + var subst in delayed expansion mode
[DEBUG] checking {abc}
[DEBUG] checking {10.0}
......
......@@ -2302,6 +2302,7 @@ WCHAR *WCMD_ReadAndParseLine(const WCHAR *optionalcmd, CMD_LIST **output, HANDLE
WINE_TRACE("Need to read more data as outstanding brackets or carets\n");
inOneLine = FALSE;
ignoreBracket = FALSE;
prevDelim = CMD_NONE;
inQuotes = 0;
memset(extraSpace, 0x00, (MAXSTRING+1) * sizeof(WCHAR));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment