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.)
A ^G character does show up for some reason, although I did not press Ctrl-G.
You must use C-c C-c comint-interrupt-subjob to get back to the shell prompt.
In GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
of 2021-03-27 built on builder10-14.porkrind.org
Windowing system distributor 'Apple', version 10.3.1894
System Description: Mac OS X 10.15.7
For information about GNU Emacs and the GNU system, type C-h C-a.
value of $LANG: en_US.UTF-8
Major mode: Fundamental
Minor modes in effect:
Disclaimer: The information in this message may be proprietary and/or confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify Apiture immediately by replying to this message and deleting it from your computer.
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 Schwab, [hidden email] GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."