Hi, I've been using HISTCONTROL=ignorespace for a long time, and I often begin a command with space if I don't want that command to be stored in history (typically "dangerous" commands, e.g. I almost always type "<space>rm something" instead of "rm something").
I have two feature request ideas for you to consider, I think these would be cool: - Like ignorespace, except that the command would still be accessible in the running bash, just not saved in the history file when exiting. If I make a typo in a command that begins with a space, I need to type it again or copy-paste. It would be more convenient to bring it back with the Up array, just like for normal commands. They'd be forgotten when I quit that shell. - Something like "ignorefaulty": Commands that contain a syntax error or command not found or alike could be handled similarly: kept in the running bash instance so you can bring it back with the Up arrow and fix it, but not saved in history. This would make the history cleaner as it'd eliminate useless faulty entries. Thanks for considering these ideas, egmont