From 5f5c5c48b9edd3f2aa634d0d8e40ff77e116879e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 15 Sep 2024 13:49:32 +0900 Subject: udev-rules: support case insensitive match This introduces 'i' prefix for match string. When specified, string or pattern will match case-insensitively. Closes #34359. Co-authored-by: Ryan Wilson --- man/udev.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'man') diff --git a/man/udev.xml b/man/udev.xml index 6719c1b1c2..e6c0e23ed4 100644 --- a/man/udev.xml +++ b/man/udev.xml @@ -141,6 +141,12 @@ For example, e"string\n" is parsed as 7 characters: 6 lowercase letters and a newline. This can be useful for writing special characters when a kernel driver requires them. + The string can be prefixed with a lowercase i (i"string") to mark that the string or pattern + will match case-insensitively. For example, i"foo" will match + foo, FOO, FoO and so on. The prefix can be + used only for match (==) or unmatch (!=) rules, e.g. + ATTR{foo}==i"abcd". + Please note that NUL is not allowed in either string variant. -- cgit v1.2.3