[Top][All Lists]

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

losing history trying to share history among shells.

From: Carl Baldwin
Subject: losing history trying to share history among shells.
Date: Sat, 17 Aug 2002 13:15:01 -0600
User-agent: Mutt/1.4i

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-I/home/packages/bash/bash-2.05b -I/home/packages/bash/bash-2.05b/include 
-I/home/packages/bash/bash-2.05b/lib  -g -O2
uname output: Linux debian 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 
unknown unknown GNU/Linux
Machine Type: i386-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

        history -a; history -n doesn't seem to work anymore.

        This used to add the most recent history command to the
        history file and then reload the file to get updates from
        all other shells.  The affect was to share history among

        Since upgrading from 2.0.4 I lose history commands with
        this method.  It may not have been a sanctioned method
        before but it worked before the upgrade.

        export PROMPT_COMMAND="history -a; history -n" in .bashrc
        See above.

        Sharing history between all active shells would be a really
        cool thing to put some more thought into at the level of
        the history library.  It's a cool feature and I suspect
        that history -a; history -n isn't the right way to do it.


reply via email to

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