bug-bash
[Top][All Lists]
Advanced

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

Re: About `M-C-e` expand result `'` failed


From: Chet Ramey
Subject: Re: About `M-C-e` expand result `'` failed
Date: Tue, 6 Feb 2024 14:34:27 -0500
User-agent: Mozilla Thunderbird

On 2/3/24 10:58 PM, Martin D Kealey wrote:
On Sun, 4 Feb 2024, 02:01 Koichi Murase, <myoga.murase@gmail.com> wrote:

I now think I should leave a comment because even Martin (who I believed
was one of the careful people about backward compatibility as seen in
[1,2]) seems to suggest a breaking change.


That's a fair point.

I am generally concerned about breaking changes that affect existing
scripts, but I see changes to readline as less problematic, since an
interactive user gets the chance to check the replacement before hitting
enter.

Yes users have to learn new behaviours, which isn't ideal, but if my
suggested "unquote" ("dequote"? "strip-quoting"?) bindable function was
also added, the impact on users would be minimal: press M-C-e and then a
second keypress to remove quotes, bringing the input buffer to the same
state as would occur under the current arrangement.

Or you could leave shell-expand-line alone, which allows users to review
the expanded line and undo it if they wish, and add a second bindable
function -- which would add the same keypress -- to quote the words.

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