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

I did not test this however.  It is just a "brainstorm" idea.

Bob


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

Reply via email to