Not seeing anyone else answering I will jump in even though I don't share history myself and don't know this topic in detail.
Julien Allali wrote: > I use to trap function as follow: > > function histo(){ > history -a; > history -r; > } > > trap histo DEBUG Instead of using the debug trap I think it is much better to use the PROMPT_COMMAND. > The bug is the following: > $ emacs & > $ jobs > [1]+ Running history -r & > > In addition I would like to know if there is another way to force > history to be synchronise after each command. Setting your histo function in PROMPT_COMMAND instead of in the debug trap would probably solve your problem. PROMPT_COMMAND='history -a;history -r' Bob _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash