I too was unaware of the HISTCONTROL option, but now that I know what it does, I am intrigued by the rationale for HISTCONTROL=ignorespace? In other words, what motivated the inclusion of handling for this option specifically?
Is it to allow users who may have reason to type sensitive commands a trivial means to suppress such commands from their command history? Or, is it motivated by some other use case where suppressing commands with a leading space is useful? What is that use case? Regards, jon.