On Mon, Feb 27, 2012 at 07:59:41PM +0100, Duarte Fusco wrote: > I put some whitespace following the prompt before typing ls b. > I was expecting to get the previous command but it gave me the before > previous one.
HISTCONTROL A colon-separated list of values controlling how commands are saved on the history list. If the list of values includes ignorespace, lines which begin with a space character are not saved in the history list. You've probably got that set.