Serena Cantor wrote:
The ls command show once, but pwd show twice. It seems to me that HISTCONTROL=ignoredups sometime work, sometime does not work. It does not work as I have hoped.
Probably you need to use HISTCONTROL=erasedups -- Raj Kiran Grandhi