www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/10/17:50:25

Date: Mon, 9 Dec 1996 08:37:52 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: John Schucker <gwynn AT globaldialog DOT com>
cc: djgpp AT delorie DOT com, ding AT ptd DOT net
Subject: Re: Bash and less questions.
In-Reply-To: <Pine.BSI.3.91.961208134950.16189A-100000@msn.globaldialog.com>
Message-ID: <Pine.SUN.3.91.961209082545.4565D-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019