[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash spews bracketed-paste escape sequences when handling signal.
From: |
Kaz Kylheku |
Subject: |
Re: Bash spews bracketed-paste escape sequences when handling signal. |
Date: |
Sat, 14 Dec 2024 23:51:30 -0800 |
User-agent: |
Roundcube Webmail/1.4.15 |
On 2024-12-14 23:16, Kaz Kylheku wrote:
> The right fix may be to stay away from SIGALRM, since readline
> clearly uses it for something.
Nope! It turns out that by dumb luck, I had picked the
winning signal. The hack used in Basta will not work with
signals other than SIGALRM. (No, not even ones like SIGBUS; I tried).
It looks as if when Bash is sitting in the call to readline to
edit the command line, it's not able to receive external signals
like SIGUSR1. SIGALRM likely works because readline keeps it
unblocked and handles it.
(Without looking at code, I can only hypothesize that the Bash
trap for ALRM is executed because readline keeps track of the
previous handler and chains to it out of its own handler.
Furthermore, it could be that when readline sees that there /is/
such a prior handler, then in that case it does the thing with the
escape sequences sent to the terminal.)
- Bash spews bracketed-paste escape sequences when handling signal., Kaz Kylheku, 2024/12/14
- Re: Bash spews bracketed-paste escape sequences when handling signal., Chet Ramey, 2024/12/14
- Re: Bash spews bracketed-paste escape sequences when handling signal., Kaz Kylheku, 2024/12/15
- Re: Bash spews bracketed-paste escape sequences when handling signal.,
Kaz Kylheku <=
- Re: Bash spews bracketed-paste escape sequences when handling signal., Chet Ramey, 2024/12/18
- Re: Bash spews bracketed-paste escape sequences when handling signal., Kaz Kylheku, 2024/12/18
- Re: Bash spews bracketed-paste escape sequences when handling signal., microsuxxor, 2024/12/18
- Re: Bash spews bracketed-paste escape sequences when handling signal., Kaz Kylheku, 2024/12/18
- Re: Bash spews bracketed-paste escape sequences when handling signal., microsuxxor, 2024/12/18
- Re: Bash spews bracketed-paste escape sequences when handling signal., Chet Ramey, 2024/12/18
- Re: Bash spews bracketed-paste escape sequences when handling signal., Kaz Kylheku, 2024/12/18
- Re: Bash spews bracketed-paste escape sequences when handling signal., microsuxxor, 2024/12/18
- Re: Bash spews bracketed-paste escape sequences when handling signal., Kaz Kylheku, 2024/12/18
- Re: Bash spews bracketed-paste escape sequences when handling signal., microsuxxor, 2024/12/18