[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash-5.1-beta available
From: |
Chet Ramey |
Subject: |
Re: Bash-5.1-beta available |
Date: |
Thu, 8 Oct 2020 14:35:56 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 |
On 10/8/20 12:37 PM, Andreas Schwab wrote:
> On Okt 08 2020, Chet Ramey wrote:
>
>> There's no good way to tell whether or not a terminal supports bracketed
>> paste, but I suppose this is as good a start as any. Remember that gdb
>> can always turn it off while running the test suite.
>
> It needs to be controllable from the outside.
It is controllable from the outside.
> the testsuite framework sets INPUTRC=/dev/null on purpose (to avoid any
> disturbance).
This is not a good general solution. What gdb is doing is relying on the
default readline settings to be appropriate, if not for every situation,
at least for running its tests. There's no way it can guarantee that such
an unrepresentative environment will handle the defaults, as we've seen
here.
It would be easy enough to use the standard INPUTRC=file mechanism to
control (and disable) what it needs.
Now, in the end, it's not going to matter here. Turning off bracketed paste
when the terminal name is "dumb" will probably work for gdb's purposes. The
thing is, it's probably going to bite someone else down the road.
Chet
--
``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/