chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:22 +0000 (07:50 +0200)
commitc687cd959206402ddc1032137566818f0fdd9beb
tree69921b0065e58ce86bfe096fefd2361205417387
parent766ca0d270976412d9c414a5ec2ea13172557e99
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.
src/test/meson.build