cmd: Space does not delimit environment variable names.
This commit is contained in:
parent
f9b4c78a89
commit
ebd1810918
|
@ -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)) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue