Mail Archives: cygwin/1997/01/15/22:40:13
I run the all-time hello-world program to print a 1 line
"Hello world\n". On Unix, it gives, as expected, the following:
% a.out
Hello world!
% _
But in DOS, running a.exe gives:
C:\Work>a
Hello world!
C:\Work>_
(where '_' indicates cursor position)
So there is one extra newline after the program's printing.
Piping the output to a text file such as "C:\Work\a > t.out"
similarly generated an extra newline in "t.out".
How'bout a fix on this?
Chin Chee-Kai (Last, First)
Internet Email-ID: cheekai AT gen DOT co DOT jp
Gen Tech Corporation
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -