Summary: | app-shells/bash: add some $HISTCONTROL setting for interactive shells by default | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christian Bricart <christian> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | UNCONFIRMED --- | ||
Severity: | enhancement | CC: | gentoo, kfm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Christian Bricart
2023-04-05 08:59:47 UTC
Having at least the 'ignorespace' set would be great since space is customary used for prefixing sensitive commands (e.g. passwords as a part of a command). It's such a pity that HISTIGNORE does not treat its patterns as extended globs unless the extglob shell option is set. Were it to do so, the issue described by Christian could be dealt with more effectively - and less invasively - by setting something like: HISTIGNORE='*([[:blank:]])@(halt|poweroff|reboot|shutdown|systemctl+([[:blank:]])reboot)?([[:blank:]]*)' Or, rather: HISTIGNORE='*([[:blank:]])@(halt|poweroff|reboot|shutdown|systemctl+([[:blank:]])@(halt|poweroff|reboot|shutdown))?([[:blank:]]*)' I may try submitting a request for HISTIGNORE to always act as if extglob were enabled for 5.3, even though I generally expect for Ramey to reject anything I suggest. |