When I run it, I see:
*** Begin cut ***
C:\>test.bat
123456789012345678901234567890
C:\>
*** End cut ***
Note the two blank lines after the script output.
Now I drop one digit on my echo line in test.bat so it looks like:
echo 12345678901234567890123456789
and run it. I see:
*** Begin cut ***
C:\>test.bat
12345678901234567890123456789
C:\>
*** End cut ***
Now there's only one blank line.
The same happens if I change the console width to 80 and I echo 80 vs. 79
digits. I also tried writing this program in Perl (from ActiveState) and
Python (comes with IBM laptop). It's the same behavior. My console window
text font is Lucida Console, if it matters.
Question: Is there any way to tell Console window not to add the extra line
if the length of the echoed text is the same as the window width?
Yong Huang
yong321 @ yahoo.com