Re: "unset HISTFILESIZE" not working in .bashrc

2009-02-16 Thread perryh
Chet Ramey wrote: > HISTFILESIZE doesn't exist until bash tries to load the history > list from the history file (taken from $HISTFILE). At that point, > if it doesn't have a value, it's set to $HISTSIZE. That doesn't > happen until after the startup files are read, as you guessed. > > If you w

Re: "unset HISTFILESIZE" not working in .bashrc

2009-02-16 Thread Chet Ramey
> 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

Re: "unset HISTFILESIZE" not working in .bashrc

2009-02-15 Thread Chet Ramey
per...@pluto.rain.com wrote: > Configuration Information [Automatically generated, do not change]: > Machine: i386 > OS: freebsd6.1 > Compiler: cc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' > -DCONF_OSTYPE='freebsd6.1' -DCONF_MACHTYPE='i386-portbld-freebsd6.1' > -DCONF_VENDOR=

"unset HISTFILESIZE" not working in .bashrc

2009-02-15 Thread perryh
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: freebsd6.1 Compiler: cc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='freebsd6.1' -DCONF_MACHTYPE='i386-portbld-freebsd6.1' -DCONF_VENDOR='portbld' -DLOCALEDIR='/usr/local/share/loc