bash - history - 2nd

Matthias B. msbREMOVE-THIS at
Fri Nov 5 03:18:24 PST 2004

On Fri, 5 Nov 2004 12:04:11 +0100 jaca <jherold at> wrote:

> that hist append os off - i guess it's a reason 

Yes, that's exactly what I expected to see. With histappend off, bash
overwrites the history file on every exit. When you log out (meaning some
action that results in all of your processes, including shells, being
killed at the same time), then your bash instances compete for writing the
history file and the last bash terminated wins and writes the history,
causing all of the commands from other shells to be lost.

> but how to turn it on?

shopt -s histappend


The average woman would rather have beauty than brains,
because the average man can see better than he can think.

More information about the lfs-support mailing list