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
b6e8e135
Commit
b6e8e135
authored
Jan 02, 2010
by
Dan Kegel
Committed by
Alexandre Julliard
Jan 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Fix echoing of multiline commands.
parent
27235ecb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
wcmdmain.c
programs/cmd/wcmdmain.c
+11
-7
No files found.
programs/cmd/wcmdmain.c
View file @
b6e8e135
...
...
@@ -1269,13 +1269,6 @@ void WCMD_execute (WCHAR *command, WCHAR *redirects,
handleExpansion
(
new_redir
,
(
context
!=
NULL
),
forVariable
,
forValue
);
cmd
=
new_cmd
;
/* Show prompt before batch line IF echo is on and in batch program */
if
(
context
&&
echo_mode
&&
(
cmd
[
0
]
!=
'@'
))
{
WCMD_show_prompt
();
WCMD_output_asis
(
cmd
);
WCMD_output_asis
(
newline
);
}
/*
* Changing default drive has to be handled as a special case.
*/
...
...
@@ -1774,6 +1767,12 @@ WCHAR *WCMD_ReadAndParseLine(WCHAR *optionalcmd, CMD_LIST **output, HANDLE readF
/* Replace env vars if in a batch context */
if
(
context
)
handleExpansion
(
extraSpace
,
FALSE
,
NULL
,
NULL
);
/* Show prompt before batch line IF echo is on and in batch program */
if
(
context
&&
echo_mode
&&
extraSpace
[
0
]
&&
(
extraSpace
[
0
]
!=
'@'
))
{
WCMD_show_prompt
();
WCMD_output_asis
(
extraSpace
);
WCMD_output_asis
(
newline
);
}
/* Start with an empty string, copying to the command string */
curStringLen
=
0
;
...
...
@@ -2106,6 +2105,11 @@ WCHAR *WCMD_ReadAndParseLine(WCHAR *optionalcmd, CMD_LIST **output, HANDLE readF
}
curPos
=
extraSpace
;
if
(
context
)
handleExpansion
(
extraSpace
,
FALSE
,
NULL
,
NULL
);
/* Continue to echo commands IF echo is on and in batch program */
if
(
context
&&
echo_mode
&&
extraSpace
[
0
]
&&
(
extraSpace
[
0
]
!=
'@'
))
{
WCMD_output_asis
(
extraSpace
);
WCMD_output_asis
(
newline
);
}
}
}
...
...
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