diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-15 06:49:32 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-15 16:09:26 +0200 |
commit | 5f5c5c48b9edd3f2aa634d0d8e40ff77e116879e (patch) | |
tree | 726c2a179ea1dcbfa296be9348d7becceb9dd35d /man | |
parent | udev-rules: embed UdevRuleToken.attr_match_remove_trailing_whitespace flag in... (diff) | |
download | systemd-5f5c5c48b9edd3f2aa634d0d8e40ff77e116879e.tar.xz systemd-5f5c5c48b9edd3f2aa634d0d8e40ff77e116879e.zip |
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 <ryantimwilson@meta.com>
Diffstat (limited to 'man')
-rw-r--r-- | man/udev.xml | 6 |
1 files changed, 6 insertions, 0 deletions
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.</para> + <para>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 + <literal>foo</literal>, <literal>FOO</literal>, <literal>FoO</literal> and so on. The prefix can be + used only for match (<literal>==</literal>) or unmatch (<literal>!=</literal>) rules, e.g. + <varname>ATTR{foo}==i"abcd"</varname>.</para> + <para>Please note that <constant>NUL</constant> is not allowed in either string variant.</para> </refsect2> |