Terminal history: repeating of the same commands in terminal

Asked by Vlad Myachikov on 2012-01-26

Hello.
If I type "hello", press enter, then again type "hello" and press enter, "hello" adds to the history again. When I click Up key after it twice in older systems, "hello" is shown me only 1 time and on the second click Terminal shows me other command. Now (11.10) it shows "hello" again, which isn't good. What's wrong?
Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Solved by:
Nathan Heafner
Solved:
2012-01-29
Last query:
2012-01-29
Last reply:
2012-01-26
Sam_ (and-sam) said : #2

There is ~/.bashrc where lines 8-10 say:
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

Vlad Myachikov (dddei) said : #3

Thanks Nathan Heafner, that solved my question.