]> git.ipfire.org Git - thirdparty/systemd.git/commit
journalctl: make matching optionally case sensitive
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Jan 2018 13:31:49 +0000 (14:31 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 28 Jan 2018 13:50:01 +0000 (14:50 +0100)
commit61c5f8a1f06832a2bcad9ab75edfa4f652df2347
tree6cad5667942cd5d47c3ab359c7d3468873b6e803
parent6becf48ca3e03cd16d58942b7c8a99f7e49275c5
journalctl: make matching optionally case sensitive

Case sensitive or case insensitive matching can be requested using
--case-sensitive[=yes|no].

Unless specified, matching is case sensitive if the pattern contains any
uppercase letters, and case insensitive otherwise. This matches what
forward-search does in emacs, and recently also --ignore-case in less.  This
works surprisingly well, because usually when one is wants to do case-sensitive
matching, the pattern is usually camel-cased. In the less frequent case when
case-sensitive matching is required with an all-lowercase pattern,
--case-sensitive can be used to override the automatic logic.
man/journalctl.xml
src/journal/journalctl.c
src/test/meson.build