> 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    [EMAIL PROTECTED]    http://tiswww.tis.case.edu/~chet/


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to