bug-bash
[Top][All Lists]
Advanced

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

Re: Stdin read-ahead in Emacs mode


From: Chet Ramey
Subject: Re: Stdin read-ahead in Emacs mode
Date: Thu, 23 Oct 2025 11:49:35 -0400
User-agent: Mozilla Thunderbird

On 9/29/25 11:08 AM, Chet Ramey wrote:

and maybe this should be the default behaviour unless some specific circumstances are met (e.g. reading from an actual file rather than a pipe, or only when not using stdin). Is anyone here familiar with the Emacs specific behaviour in bash?

I suppose if interactive is forced, and the input is a pipe (or otherwise
not seekable, but not a tty), and we're running under emacs, bash could
perform single-character reads, but it seems like an awfully special case
compensating for some strange circumstances.

The only `emacs-specific' behavior here is turning off readline, as if
--noediting had been supplied. The real oddity is trying to use interactive
mode without a tty, for which I never did get a reason.

I didn't hear anything back on this, so I made the change I described above.It will appear in the devel branch in a future push.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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