chiark / gitweb /
[PATCH] pattern matching for namedev
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Wed, 3 Dec 2003 14:22:53 +0000 (06:22 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:05 +0000 (21:13 -0700)
commit9f1da3613897346b6a45e1f7a706d2315bc0f420
treefceae25269b8a8b2ffe19c74700a9166e0810197
parent4865de442901cefebb7be889aa61233d8777b413
[PATCH] pattern matching for namedev

As promised yesterday, here is a patch to implement a more advanced
pattern matching instead of the simple '*'.

We can remove the "tty"="tty" line from udev.rules now and
replace "tty*" by "tty[0-9]*" to catch only the vc's.

  implement pattern matching in namedev
  '*'  - to match zero or more chars
  '?'  - to match exactly one char
  '[]' - character classes with ranges '[0-9]'and negation [!A]
namedev.c
test/udev-test.pl