Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11833

Re: shell-expand-line drops quotation marks

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: shell-expand-line drops quotation marks
Date 2015-11-04 08:47 -0500
Message-ID <mailman.1678.1446644868.7904.bug-bash@gnu.org> (permalink)
References <CAAHpriOiAksOZSinXeZTnXtqT6fN0TsLuDNCW5QRY4ox-crihQ@mail.gmail.com>

Show all headers | View raw


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.

> 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).

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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: shell-expand-line drops quotation marks Chet Ramey <chet.ramey@case.edu> - 2015-11-04 08:47 -0500

csiph-web