Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
303af43f
Commit
303af43f
authored
Aug 20, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Aug 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Fix a FOR parsing bug when multiple spaces follow an IN.
parent
bc8fde1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
builtins.c
programs/cmd/builtins.c
+3
-1
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+1
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+1
-0
No files found.
programs/cmd/builtins.c
View file @
303af43f
...
...
@@ -976,7 +976,9 @@ void WCMD_for (WCHAR *p, CMD_LIST **cmdList) {
while
(
*
curPos
&&
*
curPos
==
' '
)
curPos
++
;
/* Ensure line continues with IN */
if
(
!*
curPos
||
lstrcmpiW
(
curPos
,
inW
))
{
if
(
!*
curPos
||
CompareStringW
(
LOCALE_USER_DEFAULT
,
NORM_IGNORECASE
|
SORT_STRINGSORT
,
curPos
,
3
,
inW
,
-
1
)
!=
CSTR_EQUAL
)
{
WCMD_output
(
WCMD_LoadMessage
(
WCMD_SYNTAXERR
));
return
;
}
...
...
programs/cmd/tests/test_builtins.cmd
View file @
303af43f
...
...
@@ -318,6 +318,7 @@ for %%i in (A B C) do echo %%j
for %%i in (A B C) do call :forTestFun1 %%i
for %%i in (1,4,1) do echo %%i
for %%i in (A, B,C) do echo %%i
for %%i in (X) do echo %%i
goto :endForTestFun1
:forTestFun1
echo %1
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
303af43f
...
...
@@ -223,6 +223,7 @@ C
A
B
C
X
...imbricated FORs
@todo_wine@X Y
@todo_wine@X Y
...
...
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