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
4f71f4af
Commit
4f71f4af
authored
Sep 04, 2012
by
Jason Edmeades
Committed by
Alexandre Julliard
Sep 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Fix "PATH=value" command.
parent
682b276a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
builtins.c
programs/cmd/builtins.c
+1
-1
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+11
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+4
-0
No files found.
programs/cmd/builtins.c
View file @
4f71f4af
...
...
@@ -2371,7 +2371,7 @@ void WCMD_setshow_path (const WCHAR *command) {
static
const
WCHAR
pathW
[]
=
{
'P'
,
'A'
,
'T'
,
'H'
,
'\0'
};
static
const
WCHAR
pathEqW
[]
=
{
'P'
,
'A'
,
'T'
,
'H'
,
'='
,
'\0'
};
if
(
strlenW
(
param1
)
==
0
)
{
if
(
strlenW
(
param1
)
==
0
&&
strlenW
(
param2
)
==
0
)
{
status
=
GetEnvironmentVariableW
(
pathW
,
string
,
sizeof
(
string
)
/
sizeof
(
WCHAR
));
if
(
status
!=
0
)
{
WCMD_output_asis
(
pathEqW
);
...
...
programs/cmd/tests/test_builtins.cmd
View file @
4f71f4af
...
...
@@ -1530,6 +1530,17 @@ if d==d goto dest4
:dest4@space@
echo goto with a following space worked
echo ------------ Testing PATH ------------
set backup_path=%path%
set path=original
path
path try2
path
path=try3
path
set path=%backup_path%
set backup_path=
echo ------------ Testing combined CALLs/GOTOs ------------
echo @echo off>foo.cmd
echo goto :eof>>foot.cmd
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
4f71f4af
...
...
@@ -825,6 +825,10 @@ goto with no leading space worked
goto with a leading space worked
goto with a leading tab worked
goto with a following space worked
------------ Testing PATH ------------
PATH=original
PATH=try2
PATH=try3
------------ Testing combined CALLs/GOTOs ------------
world
cheball
...
...
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