help-bash
[Top][All Lists]
Advanced

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

Re: could there be a bash built-in that allows executing readline functi


From: Chet Ramey
Subject: Re: could there be a bash built-in that allows executing readline functions?
Date: Tue, 24 Oct 2023 14:32:31 -0400
User-agent: Mozilla Thunderbird

On 10/24/23 12:06 PM, Chet Ramey wrote:

Let's conduct a thought experiment. Say I added some new option to `bind'
for this (this clearly does not deserve its own builtin). Under what
conditions should it execute? What should it assume about readline's
state or the state of the objects readline exports (line buffer, etc.)?
The executing part is easy: take a string, look up a function, and
execute it. But how do you want to guarantee it executes on something
reasonable?

Should this mode run multiple readline commands per invocation? How
about numeric arguments?

--
``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/




reply via email to

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