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
765d9a14
Commit
765d9a14
authored
Aug 28, 2009
by
André Hentschel
Committed by
Alexandre Julliard
Aug 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wcmd: Ignore start and end quotes.
parent
2f3ac064
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
builtins.c
programs/cmd/builtins.c
+5
-0
wcmd.h
programs/cmd/wcmd.h
+1
-0
wcmdmain.c
programs/cmd/wcmdmain.c
+1
-1
No files found.
programs/cmd/builtins.c
View file @
765d9a14
...
...
@@ -2072,6 +2072,8 @@ void WCMD_setshow_env (WCHAR *s) {
s
+=
2
;
while
(
*
s
&&
*
s
==
' '
)
s
++
;
if
(
*
s
==
'\"'
)
WCMD_opt_s_strip_quotes
(
s
);
/* If no parameter, or no '=' sign, return an error */
if
(
!
(
*
s
)
||
((
p
=
strchrW
(
s
,
'='
))
==
NULL
))
{
...
...
@@ -2096,6 +2098,9 @@ void WCMD_setshow_env (WCHAR *s) {
}
else
{
DWORD
gle
;
if
(
*
s
==
'\"'
)
WCMD_opt_s_strip_quotes
(
s
);
p
=
strchrW
(
s
,
'='
);
if
(
p
==
NULL
)
{
env
=
GetEnvironmentStrings
();
...
...
programs/cmd/wcmd.h
View file @
765d9a14
...
...
@@ -100,6 +100,7 @@ WCHAR *WCMD_strtrim_leading_spaces (WCHAR *string);
void
WCMD_HandleTildaModifiers
(
WCHAR
**
start
,
WCHAR
*
forVariable
,
WCHAR
*
forValue
,
BOOL
justFors
);
void
WCMD_splitpath
(
const
WCHAR
*
path
,
WCHAR
*
drv
,
WCHAR
*
dir
,
WCHAR
*
name
,
WCHAR
*
ext
);
void
WCMD_opt_s_strip_quotes
(
WCHAR
*
cmd
);
WCHAR
*
WCMD_LoadMessage
(
UINT
id
);
WCHAR
*
WCMD_strdupW
(
WCHAR
*
input
);
void
WCMD_strsubstW
(
WCHAR
*
start
,
WCHAR
*
next
,
WCHAR
*
insert
,
int
len
);
...
...
programs/cmd/wcmdmain.c
View file @
765d9a14
...
...
@@ -457,7 +457,7 @@ WCHAR *WCMD_strtrim_leading_spaces (WCHAR *string) {
*
* Remove first and last quote WCHARacters, preserving all other text
*/
static
void
WCMD_opt_s_strip_quotes
(
WCHAR
*
cmd
)
{
void
WCMD_opt_s_strip_quotes
(
WCHAR
*
cmd
)
{
WCHAR
*
src
=
cmd
+
1
,
*
dest
=
cmd
,
*
lastq
=
NULL
;
while
((
*
dest
=*
src
)
!=
'\0'
)
{
if
(
*
src
==
'\"'
)
...
...
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