On 3/13/23 7:06 PM, Alex Bochannek wrote:

I also noticed that there doesn't seem to be an easy way to expand
braces with Readline, which I suspect may have to do with where in the
parsing process of Bash brace expansion actually happens.

Readline is fairly application-agnostic. There is a mechanism for
applications to add their own bindable commands, which bash does, but
there isn't one that just performs brace expansion.

This
suggestion from a few years ago does the trick, but feels like it
shouldn't be necessary.

I assume that means you think there should be a bash-specific bindable
command that performs brace expansion on the current word?

The documentation for M-C-e says "Expand the line as the shell does.
This performs alias and history expansion as well as all of the shell
word expansions (*note Shell Expansions::)." Maybe that can be tightened
up a bit as well to clarify what it does not do?

Sure, it can list the word expansions it performs.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to