bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47535: 27.2; comint shell hangs on long input


From: Andreas Schwab
Subject: bug#47535: 27.2; comint shell hangs on long input
Date: Thu, 01 Apr 2021 10:04:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

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@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]