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)
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

index 530163aaf03a082a733d46f99f37e45480bdab45..72fb33d9aec69cee1d0da4fc8e150cd3f378d228 100644 (file)
@@ -434,10 +434,6 @@ tests += [
          [],
          []],
 
-        [['src/test/test-procfs-util.c'],
-         [],
-         []],
-
         [['src/test/test-unaligned.c'],
          [],
          []],