public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Bash line-feed problem
@ 1997-04-09 16:18 DRS
  0 siblings, 0 replies; only message in thread
From: DRS @ 1997-04-09 16:18 UTC (permalink / raw)
  To: gnu-win32

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".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-04-09 16:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-09 16:18 Bash line-feed problem DRS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).