This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Bash line-feed problem
- To: gnu-win32 at cygnus dot com
- Subject: Bash line-feed problem
- From: DRS <drs at cs dot wisc dot edu>
- Date: Wed, 09 Apr 1997 18:16:59 -0500
- Organization: University of Wisonsin
- Reply-To: drs at cs dot wisc dot edu
The bash port generates a line-feed sometimes when it starts up a
program. I know this has been mentioned before, but has anyone
solved this problem? It makes even very simple progams such
as the following fail:
#include <iostream.h>
main()
{
char buf[80] = "";
cout << "Enter a line:";
cin.getline(buf, 80, '\n');
cout << "You wrote: " << buf << endl;
return 0;
}
This works right under csh and command.com, but fails under
gnu-win32 bash.
Anyone have a bash binary that doesn't output this unwanted line-feed?
Thanks very much for your help,
Dave
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".