[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'history -n' should re-read history file if history is cleared
From: |
Chet Ramey |
Subject: |
Re: 'history -n' should re-read history file if history is cleared |
Date: |
Tue, 18 Apr 2017 11:36:05 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 4/17/17 4:58 PM, Siteshwar Vashisht wrote:
> Reproducer steps :
>
>> PROMPT_COMMAND="history -a; history -c; history -n"
>> history
>
> Actual output :
> 2 history
>
> Expected output:
> All the older history items from bash history file should be re-read.
Why should explicitly clearing old items from the history cause them to
be treated as new?
--
``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/