[Top][All Lists]

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

Re: Bash-5.2-alpha available

From: Andreas Schwab
Subject: Re: Bash-5.2-alpha available
Date: Sun, 27 Feb 2022 15:30:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

On Feb 17 2022, Chet Ramey wrote:

> Thanks for the report. This is a different issue; some assumptions that the
> change to history-search-{forward,backward} uncovered.

It's still broken.  You get a double free when you modify the line
selected by <history-search-backward>, but then leave it and execute a
different line instead.

bash-5.2$ history
    1  echo 1
    2  echo 2
    3  echo 3
    4  history

Now type e, <history-search-backward>, <end-of-line>, 4,
<previous-history>, <accept-line>.

bash-5.2$ history 
    1  echo 1
    2  echo 2
    3* echo 34
    4  history 
    5  echo 2
    6  history 

Now type <previous-history>*4 (move to line 3), <revert-line> -> crash

Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

reply via email to

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