[Top][All Lists]

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

Re: Document that here strings don't support brace expansion.

From: Chet Ramey
Subject: Re: Document that here strings don't support brace expansion.
Date: Tue, 14 Mar 2023 11:04:49 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

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.

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    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

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