bug-bash
[Top][All Lists]
Advanced

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

Re: HISTFILE=/dev/null, HISTSIZE=0 removes /dev/null on exit


From: Chet Ramey
Subject: Re: HISTFILE=/dev/null, HISTSIZE=0 removes /dev/null on exit
Date: Tue, 20 Oct 2015 14:57:40 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

On 10/20/15 2:53 PM, Piotr Grzybowski wrote:
> hey,
> 
>  just out of curiosity, does this fix it (sorry I just finished when
> you wrote that it had been fixed):

Well, it does, but it's overkill on one hand and doesn't fix the underlying
problem on the other.  What you want to avoid is truncating the history
file (HISTSIZE=0) or writing to a temp file and renaming it over a
non-regular file (/dev/null).  Those changes are made in the history
library.

Chet

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



reply via email to

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