Red Hat Bugzilla – Bug 978958
RFE: journalctl should be case insensitive and use of "*"
Last modified: 2014-06-13 07:55:31 EDT
Description of problem:
journalctl should be case insensitive and couls accept *
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. journalctl --unit Network*
2. journalctl --unit Networkmanager
journalctl accepts only strict name of the unit.
Please add some behaviour to be case insensitive
journalctl --unit NetworkManager is only one possible way
journalctl --unit networkmanager
journalctl --unit network*
journalctl --unit Network*
you know, that you have bash completion with <tab> ?
I think that <tab> here is a nice solution and names of unit files are case-sensitive, so this would lead to inconsistency. Also --unit can be specified only once and takes only one argument.
please could you consider usage of asterisk or any grepping feature
some usecase like:
1, you would like service network + NetworkManager:
journalctl --unit [nN]etwork*
2, grep all from log daemons, and you don't know if there is syslog / rsyslog on the system:
sudo journalctl --unit *syslog
3, you are not sure about the right name:
sudo journalctl --unit *vnc
Tab completion is the solution in Fedora for this problem.
The internal structure of the journal index does not easily allow support of wildcards.
The usability issues are better addressed with bash completion, which already works...
_BUT_ apparently somebody decided, that RHEL-7 should _NOT_ have bash completion at all.
At the end rhel7 has bash-completion, which solves this issue quite nicely.