Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8f282944
Commit
8f282944
authored
Sep 06, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Oct 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Reset ignoreBracket when moving to the next line.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55528
parent
01fab4c4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+12
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+2
-0
wcmdmain.c
programs/cmd/wcmdmain.c
+1
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
8f282944
...
...
@@ -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
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
8f282944
...
...
@@ -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}
...
...
programs/cmd/wcmdmain.c
View file @
8f282944
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment