Are you doing this in the same shell session where you typed that command? A shell only reads the history file once when it starts up, and only writes to the file once when it exits. A different shell session will not see anything that was done in another, currently running shell. Also, the default for bash is to overwrite the HISTFILE completely upon exit, so any entries that another shell made since this shell was started will be lost.
|