Similar to the "Discard Old Duplicates" option for the command prompt in Windows, or the HISTCONTROL=ignoredups option for the bash shell in *nix.
Basically, it means that if a command is already in the command history, it removes it before adding it again so you don't get duplicates. If you entered commands such as the following:
a
b
b
a
c
d
Currently you'd get d,c,a,b,a in your command history. If you enabled this option you should get d,c,a,b in your history.
But that would break any scripts that send the "last command" from the history. History is what youve sent, in order. What would the purpose of an option such as this?
No, he means remove it from history before adding it. Such an option would be useful and would reduce the time it takes to browse the history... Can it be easily implemented?
A command history that doesn't have duplicates? Sounds like getting a book and reducing its size by eliminating all the duplicated words (eg. the word "the" seems to occur an awful lot, is it really necessary?).
Seriously, I suppose it could be done. You could also write a script that scans the command history and makes a list of unique entries, if that is what you want, for some reason.
It makes no sense for the command history to have duplicates, because it's there to help you type faster, not provide you with the entire history of what you had typed, I think. Such an option would help you find what you want faster.