[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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.
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU address@hidden http://tiswww.tis.case.edu/~chet/