i think this bug is invalid. history -c is behaving as intended: it clears the history of the current session. if you want to have the history completely removed then you have to make sure the history file is also cleared. to be really sure you will also have to clear the history of any other running bash sessions. note that there are many different ways to manipulate how bash handles the history in memory and the history file. i recommend to read the bash manual about history.
here is the section about the history command http://www.gnu.org/software/bash/manual/html_node/Bash-History-Builtins.html the bash manual is a bit vague about the concept of the history. it should state more clearly that at any given time there are at least two instances of the history: one is the history kept in the memory of the currently running bash session, the other is the history kept in the history file (usually ~/.bash_history or whatever is defined in the variable $HISTFILE). in case of the history command some options manipulate the history file, while the other options (including the option -c) only manipulates the history which is kept in the memory of the currently running session. ** Changed in: bash (Ubuntu) Status: Confirmed => Invalid -- "history -c" doesn't clear bash history https://bugs.launchpad.net/bugs/487613 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs