[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell-expand-line drops quotation marks
From: |
Pádraig Brady |
Subject: |
Re: shell-expand-line drops quotation marks |
Date: |
Wed, 4 Nov 2015 14:45:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 04/11/15 13:47, Chet Ramey wrote:
> On 11/3/15 7:44 PM, Keith Thompson wrote:
>> The shell-expand-line command (bound to Escape-Ctrl-E) incorrectly removes
>> quotation marks from
>> the command line, often resulting in a command that differs from what the
>> user intended to type.
>
> This is the documented behavior. shell-expand-line performs all of the
> shell word expansions, including quote removal.
How useful is that though when the expansion gives a different meaning?
>> I often type Escape-Ctrl-E to expand a history substitution in place
>> before typing Enter, but it has the side effect of stripping quotes from
>> what I've already typed.
>
> If you want to perform history expansion, try M-^ (history-expand-line).
Yes this is useful. I've set it up to happen automatically with
this in my .inputrc
$if Bash
# do history expansion when space entered
Space: magic-space
$endif
cheers,
Pádraig.