Created attachment 134053 [details] Testing the history with echo "test" As the title says: entries starting with a space are ignored when moving through the history. i.e. Try running " env", and press the up arrow Running "env" does show it in the history. Taking a look at ~/.bash_history shows the entry is not being stored, so I am not sure if this a bug or a feature. I attached screenshots that show the history before and after reopneing Konsole. The session at the left picture starts after the clear command in the history at the right picture.
Do you have ignorespace enabled for HISTCONTROL: echo $HISTCONTROL see https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html#Bash-Variables (or the bash manual page).
You are right! I did not know this was thing! ~> echo $HISTCONTROL ignoreboth Quote from them (GNU): "A value of ‘ignoreboth’ is shorthand for ‘ignorespace’ and ‘ignoredups’."
No problem, bash has many, many options :)