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
25fcad37
Commit
25fcad37
authored
Jul 28, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jul 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Partial fix for echo's special ':' handling.
parent
dcd544f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
builtins.c
programs/cmd/builtins.c
+2
-2
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+4
-4
No files found.
programs/cmd/builtins.c
View file @
25fcad37
...
...
@@ -861,10 +861,10 @@ void WCMD_echo (const WCHAR *command) {
int
count
;
const
WCHAR
*
origcommand
=
command
;
if
(
command
[
0
]
==
' '
||
command
[
0
]
==
'.'
)
if
(
command
[
0
]
==
' '
||
command
[
0
]
==
'.'
||
command
[
0
]
==
':'
)
command
++
;
count
=
strlenW
(
command
);
if
(
count
==
0
&&
origcommand
[
0
]
!=
'.'
)
{
if
(
count
==
0
&&
origcommand
[
0
]
!=
'.'
&&
origcommand
[
0
]
!=
':'
)
{
if
(
echo_mode
)
WCMD_output
(
WCMD_LoadMessage
(
WCMD_ECHOPROMPT
),
onW
);
else
WCMD_output
(
WCMD_LoadMessage
(
WCMD_ECHOPROMPT
),
offW
);
return
;
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
25fcad37
...
...
@@ -31,13 +31,13 @@ word
.word
@todo_wine@@pwd@>echo:
@todo_wine@
@pwd@>echo :@space@
:
@todo_wine@@pwd@>echo:word
@todo_wine@
word
word
@pwd@>echo :word@space@
:word
...
...
@@ -57,9 +57,9 @@ at-echoed-word
.
word
.word
@todo_wine@
:
@todo_wine@
word
word
:word
word@space@
word@space@@space@
...
...
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