[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'history -c' does not reset current line to 1
From: |
Chet Ramey |
Subject: |
Re: 'history -c' does not reset current line to 1 |
Date: |
Sat, 4 Mar 2017 13:36:18 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 |
On 3/4/17 12:45 AM, Misaki wrote:
> Bash Version: 4.3
> Patch Level: 46
> Release Status: release
>
> Description:
> I am sorry if there is anything wrong with this report. The 'history'
> built-in command does not correctly track history numbers when you use the
> sequence 'history -r', 'history -c', 'history -r' if you have a high number
> of history entries. I don't know if any other settings affect this bug. The
> oldest history entry is not set back to 1, and using 'history -w' or
> 'history -a' after this could cause a problem.
This was changed in the development version back in mid-December.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/