GNU bug report logs - #47535
27.2; comint shell hangs on long input

Previous Next

Package: emacs;

Reported by: David Biesack <David.Biesack <at> Apiture.com>

Date: Wed, 31 Mar 2021 22:27:01 UTC

Severity: normal

Found in version 27.2

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: David Biesack via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs <at> gnu.org>
Cc: David Biesack <David.Biesack <at> Apiture.com>, 47535 <at> debbugs.gnu.org
Subject: Re: bug#47535: 27.2; comint shell hangs on long input
Date: Thu, 01 Apr 2021 10:04:05 +0200
On Mär 31 2021, David Biesack via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:

> Start Emacs with emacs -Q
>
> M-x shell
>
> in the shell buffer, enter
>
> echo <C-u> 1 0 0 0 x <Return>
>
> to echo 1,000 x's. Works fine.
>
> echo <C-u> 1 0 2 4 x <Return>
>
> to echo 1,024 x's. The shell buffer prints the command, then "hangs" and
> the output is never printed, and the command prompt not issued. no
> character input works (Return, etc.)

That's a limitation of the BSD tty interface.  Once the input buffer is
full, no more characters can be sent, not even a newline or the EOF
character.  The Linux tty interface instead discards further input until
the newline or EOF.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




This bug report was last modified 4 years and 99 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.