Você possivelmente tem ignorespace definido em HISTCONTROL :
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.
Ou uma regra equivalente em HISTIGNORE . Veja variáveis usadas pelo Bash no manual .