On 2/6/24 3:04 PM, Zachary Santer wrote:
On Tue, Feb 6, 2024 at 2:35 PM Chet Ramey <chet.ra...@case.edu <mailto:chet.ra...@case.edu>> wrote:

    and add a second bindable function -- which would add the same keypress
    -- to quote the words.


Would Bash be saving what the line looked like before it performed quote removal with M-C-e,

It already makes the shell expansions an undoable operation, I think that
would suffice. I'm not talking about changing the behavior of M-C-e, I'm
talking about adding a different function that you could use separately as
well.

and replacing what's on the command-line with that when this other readline function is invoked? All this talk of a quote-line readline function doesn't make any sense if Bash doesn't know how you want it to be quoted.

There are other places (e.g., ${var@Q} where bash chooses the most appropriate form of quoting. Why not here?

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