hi,
shouldn't
HISTCONTROL=ignoreboth:erasedups
first, not store "contiguous" identical commands
then, not store command beginning with a space
and, remove previous same command in the history file
I can't reproduce this. The `erasedups' option will remove duplicate
entries from the in-memory history list. If you use `history -w' to
overwrite the history file, you will see this happens. If you append
the history at the end of your session, or use some other mechanism
to write the history file, it won't touch the deleted history entries,
since those were not entered into the history during the current shell
session.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/