[Top][All Lists]

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

Re: [PATCH] bash-4.2-release-with-unlimited-history-by-crq.diff

From: Chet Ramey
Subject: Re: [PATCH] bash-4.2-release-with-unlimited-history-by-crq.diff
Date: Thu, 08 Nov 2012 18:22:07 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

On 10/31/12 3:43 PM, cheng renquan wrote:

> 1) HISTFILESIZE has a bug that current bash manual saying if HISTFILESIZE
> is unset, then HISTFILE will be unlimited, but it seems there is no way to
> unset it in bash_profile or any rc file?

Yeah, that's a problem.  The next release of bash will change things so
that setting HISTFILESIZE to a value < 0 in a startup file will result in
the history file not being truncated.

> 2) remove duplicates in HISTFILE also, not just in current history in
> memory, we can say this a deep dedup? it only run deep dedup when

I'd rather see this done (and have adapted your previous code submission to
do so) in a separate program that links with the history library and can
operate on arbitrary history files outside of bash.  There are applications
besides bash that use readline, save history, and could benefit.


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

reply via email to

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