Dan Widyono on 14 Sep 2007 22:29:50 -0000


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

Re: [PLUG] Bash History question


I suppose if you're changing PROMPT_COMMAND anyway, you could wrap your
history -a command with your own home-grown locking using e.g. "ln -s $$
$HOME/.bash_history.lck 2>/dev/null && history -a && rm -f
$HOME/.bash_history.lck 2>/dev/null; history -n".

?

Dan W.

On Fri, Sep 14, 2007 at 04:38:02PM -0400, JP Vossen wrote:
> Chet says, "There's no file locking.  The burden is on the user to 
> synchronize."
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug