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
ebd18109
Commit
ebd18109
authored
Sep 06, 2012
by
Jason Edmeades
Committed by
Alexandre Julliard
Sep 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Space does not delimit environment variable names.
parent
f9b4c78a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
builtins.c
programs/cmd/builtins.c
+2
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+2
-2
wcmdmain.c
programs/cmd/wcmdmain.c
+1
-1
No files found.
programs/cmd/builtins.c
View file @
ebd18109
...
...
@@ -2361,6 +2361,8 @@ void WCMD_setshow_env (WCHAR *s) {
*
p
++
=
'\0'
;
if
(
strlenW
(
p
)
==
0
)
p
=
NULL
;
WINE_TRACE
(
"set: Setting var '%s' to '%s'
\n
"
,
wine_dbgstr_w
(
s
),
wine_dbgstr_w
(
p
));
status
=
SetEnvironmentVariableW
(
s
,
p
);
gle
=
GetLastError
();
if
((
!
status
)
&
(
gle
==
ERROR_ENVVAR_NOT_FOUND
))
{
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
ebd18109
...
...
@@ -203,10 +203,10 @@ baz@space@
1
0
FOOBAR not defined
@todo_wine@
baz
baz
FOOBAR = baz
0
@todo_wine@
baz2
baz2
0
bar
@todo_wine@FOOBAR= bar
...
...
programs/cmd/wcmdmain.c
View file @
ebd18109
...
...
@@ -557,7 +557,7 @@ static WCHAR *WCMD_expand_envvar(WCHAR *start,
static
const
WCHAR
Time
[]
=
{
'T'
,
'I'
,
'M'
,
'E'
,
'\0'
};
static
const
WCHAR
Cd
[]
=
{
'C'
,
'D'
,
'\0'
};
static
const
WCHAR
Random
[]
=
{
'R'
,
'A'
,
'N'
,
'D'
,
'O'
,
'M'
,
'\0'
};
static
const
WCHAR
Delims
[]
=
{
'%'
,
'
'
,
'
:'
,
'\0'
};
static
const
WCHAR
Delims
[]
=
{
'%'
,
':'
,
'\0'
};
WINE_TRACE
(
"Expanding: %s (%s,%s)
\n
"
,
wine_dbgstr_w
(
start
),
wine_dbgstr_w
(
forVal
),
wine_dbgstr_w
(
forVar
));
...
...
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