[1/2] cmd: Always add a new line in 'type' output on single file mode

Nikolay Sivov bunglehead at gmail.com
Tue Feb 17 13:55:02 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=14711

A new line is always placed by native for 'type' command.
In a multiple files mode error message placed the same line
as a previous file line, no extra new line added in this case.

Changelog:
    - Always add a new line in 'type' output on single file mode

>From b854c305f7f6b4a999a1e4f05d6ca39faa889b57 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Tue, 17 Feb 2009 22:39:42 +0300
Subject: Always add a new line in 'type' output on single file mode

---
 programs/cmd/builtins.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index db8b02f..6679b86 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -2296,6 +2296,8 @@ void WCMD_type (WCHAR *command) {
         WCMD_output_asis (buffer);
       }
       CloseHandle (h);
+      if (!writeHeaders)
+          WCMD_output_asis (newline);
     }
   }
 }
-- 
1.5.6.3







More information about the wine-patches mailing list