On 2 April 2010 22:35, Gianluca Cecchi <gianluca.cecchi(a)gmail.com> wrote:
I see that in Linux, on Fedora, but in general with some flavours
and
distros, it seems that write operations to the .bash_history are not
"consistent", in the sense that sometimes you will not find all the commands
in it..... and sometimes they are not aligned (a sort of .swp file effect
like in vim...?)
Is there a particular reason?
By default, history is written to the file at the end of the session.
Is there a possible configuration giving a consistent and synchronous
fill
of this file? Eventually eliminating cache things if this could be the
cause...
export PROMPT_COMMAND='history -a'
--
Sam