bug-bash
[Top][All Lists]
Advanced

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

Re: "unset HISTFILESIZE" not working in .bashrc


From: Chet Ramey
Subject: Re: "unset HISTFILESIZE" not working in .bashrc
Date: Mon, 16 Feb 2009 08:20:47 -0500

> Actually, what I want is to prevent writing to the history file
> at all when bash exits.  (Not all the time, just in certain cases
> that other logic in .bashrc will be able to detect.  Unsetting
> HISTFILESIZE unconditionally was a simplified test case.)
> 
> Should I unset HISTFILE, or set it to /dev/null, instead of
> trying to mess with HISTFILESIZE?

The "official" way to prevent the history from being written is to unset
HISTFILE.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://tiswww.tis.case.edu/~chet/




reply via email to

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