Date: Mon, 9 Dec 1996 08:37:52 +0200 (IST) From: Eli Zaretskii To: John Schucker cc: djgpp AT delorie DOT com, ding AT ptd DOT net Subject: Re: Bash and less questions. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 8 Dec 1996, John Schucker wrote: > Oh, posting where I replaced is simple. I replaced, in screen.c: > #define _outtext(s) cputs(s); > with: > #define _outtext(s) {fputs(s,stdout); fflush(stdout);} That explains it. The *really* important place to replace is in the `flush' function defined on `output.c' file. There is a passage there which says thus: #if MSDOS_COMPILER==BORLANDC || MSDOS_COMPILER==DJGPPC if (is_tty && any_display) { *ob = '\0'; cputs(obuf); ob = obuf; return; } #endif Replace that call to `cputs' with a call to `fputs', and you will get what you want. > BTW, any idea why bash runs fine but suddenly dies on me? It will help if you post the stack trace which gets printed when `bash' crashes. Post it to the news group, so Daisuke Aoyama (who did the port) will see it. Also, be sure to use the latest version of `bash', so you don't have to debug problems that are already solved. I only use `bash' as a batch shell, so I didn't see any of these problems. > If I get both of these problems worked out, I'll move on to messing about > with emacs. I'll probably have 20 questions on that, too. Be my guest.