[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Calling `trap xxx INT' in completion functions of `complete
Re: [PATCH] Calling `trap xxx INT' in completion functions of `complete -F' leaves readline in a strange state
Tue, 6 Sep 2022 09:28:52 -0400
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.1
On 9/2/22 6:28 AM, Koichi Murase wrote:
Bash Version: 5.1
Patch Level: 16
Release Status: release
In Bash versions from 4.3 to the current devel, after calling `trap'
for SIGINT in completion functions specified to `complete -F',
readline is left in a strange state where C-c does not respond and
the first character of the next user command is dropped. This is
caused by missing `rl_set_signals ()' after using `trap xxx INT' in
the completion functions.
Thanks for the report. I'll look at it after bash-5.2 is released.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU firstname.lastname@example.org http://tiswww.cwru.edu/~chet/