HISTCONTROL=ignoreboth is documented wrong in /etc/skel/.bashrc

Bug #218947 reported by Daniel Hahler
4
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
New
Low
Unassigned

Bug Description

Binary package hint: bash

/etc/skel/.bashrc says:

# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups
# ... and ignore same sucessive entries.
export HISTCONTROL=ignoreboth

..but "... and ignore same sucessive entries." for "ignoreboth" is wrong, at least when comparing to bash(1), which says:
       HISTCONTROL
              [...] If the list of values
              includes ignorespace, lines which begin with a space character are not saved in the history list. A value of
              ignoredups causes lines matching the previous history entry to not be saved. A value of ignoreboth is shorthand for
              ignorespace and ignoredups. [...]

So, the comment for "ignoreboth" should really say "# ... and ignore entries starting with a space."

Daniel Hahler (blueyed)
Changed in bash:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.