On 5/12/17 8:42 AM, Eduardo Bustamante wrote:
> This issue came up in the following help-bash thread:
> http://lists.gnu.org/archive/html/help-bash/2017-05/msg00001.html
> 
> Write: <echo '> then hit return. Bash will output the secondary
> prompt, because it expects the user to close the single quote. Run
> `edit-and-execute-command' to fix the input (e.g. <echo 'x'>). Bash
> will then execute the command, but it'll output the secondary prompt
> again, expecting the user to close the single quote.

It's meant to work like that, and always has.

The command is executed in a separate context, exactly the same as
running fc on a command from the history file (in fact, that's what
happens).  It's meant to not affect the contents of the current
command line. That's how Posix specifies it.

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

Reply via email to