| Summary: | Entries starting with a space are ignored when moving through the history | ||
|---|---|---|---|
| Product: | [Applications] konsole | Reporter: | Andrés B.S. <andresbs2000> |
| Component: | history | Assignee: | Konsole Bugs <konsole-bugs-null> |
| Status: | CLOSED NOT A BUG | ||
| Severity: | normal | CC: | a.samirh78 |
| Priority: | NOR | ||
| Version First Reported In: | 20.12.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Other | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Testing the history with echo "test" | ||
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 :) |
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.