This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
bash-shell output
- To: gnu-win32 at cygnus dot com
- Subject: bash-shell output
- From: Nils Goesche <ngo at wossolit dot teles dot de>
- Date: 04 Feb 1998 17:07:50 -0800
- Cc: ntemacs-users at cs dot washington dot edu
Hi!
The following program doesn't work properly when run from bash
(with `M-x shell' from within Emacs):
#include <stdio.h>
int main()
{
int i;
printf("Enter number: ");
/* fflush(NULL); */
scanf("%d", &i);
printf("Got %d.\n", i);
return 0;
}
You have to uncomment that fflush-line. But the usual shells
like command.com or 4nt don't need that line. This is somewhat
annoying. Can I at least force the shell somehow to flush
input/output buffers? Some other programs are just unusable
because of this behavior.
--
Nils Goesche
My obscure opinions are my very own.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".