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
4b4dd300
Commit
4b4dd300
authored
Jul 14, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jul 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Avoid excess newline after TYPE outputs file contents.
parent
f43297f9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
builtins.c
programs/cmd/builtins.c
+0
-2
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+10
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+9
-0
No files found.
programs/cmd/builtins.c
View file @
4b4dd300
...
...
@@ -2532,8 +2532,6 @@ void WCMD_type (WCHAR *command) {
WCMD_output_asis
(
buffer
);
}
CloseHandle
(
h
);
if
(
!
writeHeaders
)
WCMD_output_asis
(
newline
);
}
}
}
...
...
programs/cmd/tests/test_builtins.cmd
View file @
4b4dd300
...
...
@@ -58,6 +58,16 @@ echo P%ERRORLEVEL%
echo %ERRORLEVEL%S
echo P%ERRORLEVEL%S
echo ------------ Testing type ------------
echo bar> foobaz
@echo on
type foobaz
echo ***
@echo off
type foobaz
echo ***
del foobaz
echo ------------ Testing if/else --------------
echo if/else should work with blocks
if 0 == 0 (
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
4b4dd300
...
...
@@ -70,6 +70,15 @@ ERRORLEVEL
P0
0S
P0S
------------ Testing type ------------
@pwd@>type foobaz@space@
bar
@pwd@>echo ***@space@
***
bar
***
------------ Testing if/else --------------
if/else should work with blocks
if seems to work
...
...
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