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
8d02010f
Commit
8d02010f
authored
Mar 18, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed handling of "echo."
parent
838a1ea0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
builtins.c
programs/wcmd/builtins.c
+6
-4
wcmdmain.c
programs/wcmd/wcmdmain.c
+1
-6
No files found.
programs/wcmd/builtins.c
View file @
8d02010f
...
...
@@ -212,16 +212,18 @@ void WCMD_echo (const char *command) {
static
const
char
*
eon
=
"Echo is ON
\n
"
,
*
eoff
=
"Echo is OFF
\n
"
;
int
count
;
if
((
command
[
0
]
==
'.'
)
&&
(
command
[
1
]
==
0
))
{
WCMD_output
(
newline
);
return
;
}
if
(
command
[
0
]
==
' '
)
command
++
;
count
=
strlen
(
command
);
if
(
count
==
0
)
{
if
(
echo_mode
)
WCMD_output
(
eon
);
else
WCMD_output
(
eoff
);
return
;
}
if
((
count
==
1
)
&&
(
command
[
0
]
==
'.'
))
{
WCMD_output
(
newline
);
return
;
}
if
(
lstrcmpi
(
command
,
"ON"
)
==
0
)
{
echo_mode
=
1
;
return
;
...
...
programs/wcmd/wcmdmain.c
View file @
8d02010f
...
...
@@ -384,12 +384,7 @@ void WCMD_process_command (char *command)
WCMD_directory
();
break
;
case
WCMD_ECHO
:
/* Use the unstripped version of the following data - step over the space */
/* but only if a parameter follows */
if
(
strlen
(
&
whichcmd
[
count
])
>
0
)
WCMD_echo
(
&
whichcmd
[
count
+
1
]);
else
WCMD_echo
(
&
whichcmd
[
count
]);
WCMD_echo
(
&
whichcmd
[
count
]);
break
;
case
WCMD_FOR
:
WCMD_for
(
p
);
...
...
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