On 11/30/19 9:57 AM, Dennis Williamson wrote:
> On Fri, Nov 29, 2019, 10:40 AM Nikolaos Kakouros wrote:
>
>> Using bash version:
>>
>> GNU bash, version 5.0.11(1)-release (x86_64-pc-linux-gnu)
>>
>>
>> Trying to map Backspace to execute a function, I try to do:
>>
>> bind -x '"Rubout": my_func'
>
On Sat, Nov 30, 2019, 11:24 AM Chet Ramey wrote:
>
Readline binds the terminal special characters if the variable
> `bind-tty-special-chars' is set, and it's set by default.
>
Wow, that's been in Bash a long time and I never noticed it! Thanks!
>
On Fri, Nov 29, 2019, 10:40 AM Nikolaos Kakouros wrote:
> Using bash version:
>
> GNU bash, version 5.0.11(1)-release (x86_64-pc-linux-gnu)
>
>
> Trying to map Backspace to execute a function, I try to do:
>
> bind -x '"Rubout": my_func'
>
> This, as expected, binds the string 'Rubout' to the fun