bug-bash
[Top][All Lists]
Advanced

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

Re: problem with using ctrl-x ctrl-e ( open vi editor )


From: Chet Ramey
Subject: Re: problem with using ctrl-x ctrl-e ( open vi editor )
Date: Mon, 19 Oct 2020 12:02:30 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.3.2

On 10/18/20 10:34 PM, Hyunho Cho wrote:

> Bash Version: 5.0
> Patch Level: 17
> Release Status: release
> 
> #####################################################
> 
> bash$ cat <<\EOF      # without using ctrl-x ctrl-e there is no problem
> occurred.
>> 111
>> 222
>> EOF
> 111
> 222
> 
> ---------------------------------------------------------------------------------------
> 
> bash$ cat <<\EOF
>> 111
>>              <---- in this line open vi editor with ctrl-x ctrl-e
>                         and add another 222 line then :wq
> 
> 
> bash$ cat <<\EOF
>> 111
>>
> cat <<\EOF
> 111
> 222
> EOF
> 111            <---- successfully executed cat command with heredoc
> 222
>>
>>
>>
>> ^C           <---- but does not end ">" prompt until enter ctrl-c

Thanks for the report. Since the commands in the file are executed in a
different execution context, and do not interrupt the parsing of the
current command, what do you think this should do? Bash could simply
disallow that construct if it's in the middle of parsing a compound
command, as other shells do, but it's always done its best to continue
with the compound command.


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