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
fdd0bfa1
Commit
fdd0bfa1
authored
Feb 11, 2003
by
Sylvain Petreolle
Committed by
Alexandre Julliard
Feb 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handling of PATH command with spaces.
parent
095322e2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
builtins.c
programs/wcmd/builtins.c
+2
-2
wcmd.h
programs/wcmd/wcmd.h
+1
-4
wcmdmain.c
programs/wcmd/wcmdmain.c
+1
-1
No files found.
programs/wcmd/builtins.c
View file @
fdd0bfa1
...
...
@@ -672,7 +672,7 @@ char buffer[1048];
* Set/Show the path environment variable
*/
void
WCMD_setshow_path
()
{
void
WCMD_setshow_path
(
char
*
command
)
{
char
string
[
1024
];
DWORD
status
;
...
...
@@ -687,7 +687,7 @@ DWORD status;
}
}
else
{
status
=
SetEnvironmentVariable
(
"PATH"
,
param1
);
status
=
SetEnvironmentVariable
(
"PATH"
,
command
);
if
(
!
status
)
WCMD_print_error
();
}
}
...
...
programs/wcmd/wcmd.h
View file @
fdd0bfa1
...
...
@@ -60,7 +60,7 @@ void WCMD_setshow_attrib (void);
void
WCMD_setshow_date
(
void
);
void
WCMD_setshow_default
(
void
);
void
WCMD_setshow_env
(
char
*
command
);
void
WCMD_setshow_path
(
voi
d
);
void
WCMD_setshow_path
(
char
*
comman
d
);
void
WCMD_setshow_prompt
(
void
);
void
WCMD_setshow_time
(
void
);
void
WCMD_shift
(
void
);
...
...
@@ -135,6 +135,3 @@ typedef struct {
/* Must be last in list */
#define WCMD_EXIT 36
programs/wcmd/wcmdmain.c
View file @
fdd0bfa1
...
...
@@ -286,7 +286,7 @@ char *whichcmd;
WCMD_move
();
break
;
case
WCMD_PATH
:
WCMD_setshow_path
();
WCMD_setshow_path
(
p
);
break
;
case
WCMD_PAUSE
:
WCMD_pause
();
...
...
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