[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HISTCONTROL=erasedups
From: |
Chet Ramey |
Subject: |
Re: HISTCONTROL=erasedups |
Date: |
Thu, 10 May 2007 09:30:25 -0400 |
> Chet Ramey wrote:
> > If you want to force the history file to be completely rewritten, you
> > can use `history -w' at shell exit to rewrite it. There is, unfortunately,
> > currently no easy way to force the `rewrite-at-exit' behavior.
>
> Could a shell trap be used to do this?
>
> trap 'history -w' EXIT
That's the way to force `history -w' at shell exit. There is no variable
setting to make that behavior the default without using a trap, however.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong.
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/