bug-bash
[Top][All Lists]
Advanced

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

Re: bash 5.0.2(1) multiline command in history bug


From: Chet Ramey
Subject: Re: bash 5.0.2(1) multiline command in history bug
Date: Mon, 4 Feb 2019 09:06:22 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

On 2/4/19 3:22 AM, Jason Vas Dias wrote:
> Good day -
> 
>   Under bash 4.4.23, with emacs history editing enabled, I can do:
>    $ echo '1
>     > 2
>     > 3
>     > '
>     1
>     2
>     3
>    $
>    and I can then press the <UP-ARROW> (move-up / history-previous) key,
>    and the same command, including embedded new lines in the arguments,
>    is echoed back to me, and I can press <RETURN> to repeat exactly that
>    command (scroll up in history and repeat last command).
> 
>    Now, with bash-5.0.2,  this capability is removed: scrolling up in
> the history,
>    if the previous command had a multi-line argument, shows the multiline
>    argument folded, like:
>     $ echo '1 2 3 '

I can't reproduce this. I get:

$ echo $BASH_VERSION
5.0.2(2)-release
$ echo '1
> 2
> 3'
1
2
3
                        [C-P here]
$ echo '1
2
3'



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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]