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
32c8b466
Commit
32c8b466
authored
Sep 07, 2010
by
Jason Edmeades
Committed by
Alexandre Julliard
Sep 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: echo.word should echo back the word without the .
parent
4f210e21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
builtins.c
programs/cmd/builtins.c
+3
-6
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+2
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+2
-0
No files found.
programs/cmd/builtins.c
View file @
32c8b466
...
...
@@ -668,15 +668,12 @@ BOOL WCMD_delete (WCHAR *command, BOOL expectDir) {
void
WCMD_echo
(
const
WCHAR
*
command
)
{
int
count
;
const
WCHAR
*
origcommand
=
command
;
if
((
command
[
0
]
==
'.'
)
&&
(
command
[
1
]
==
0
))
{
WCMD_output
(
newline
);
return
;
}
if
(
command
[
0
]
==
' '
)
if
(
command
[
0
]
==
' '
||
command
[
0
]
==
'.'
)
command
++
;
count
=
strlenW
(
command
);
if
(
count
==
0
)
{
if
(
count
==
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
View file @
32c8b466
...
...
@@ -9,6 +9,8 @@ echo "doublequotedword"
echo "/?"
echo.
echo .
echo.word
echo .word
echo ------------ Testing 'set' --------------
echo set "FOO=bar" should not include the quotes in the variable value
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
32c8b466
...
...
@@ -9,6 +9,8 @@ at-echoed-word
"/?"
.
word
.word
------------ Testing 'set' --------------
set "FOO=bar" should not include the quotes in the variable value
bar
...
...
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