From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: [udev] man page beauty
Date: Thu, 04 Dec 2003 03:41:45 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-107050944530904@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 324 bytes --]
Hi,
I've never seen any project where the documentation is in sync with the
code at this early stage. Nice! So here is the patch to make it extra perfect :)
thanks,
Kay
05-udev.8-tweaks.diff
remove random indent to be consistent
style is "shell style"
s/wildcard/pattern/
mention negation char in character class
[-- Attachment #2: 05-udev.8-tweaks.diff --]
[-- Type: text/plain, Size: 2454 bytes --]
diff -Nru a/udev.8 b/udev.8
--- a/udev.8 Thu Dec 4 04:24:15 2003
+++ b/udev.8 Thu Dec 4 04:24:15 2003
@@ -27,7 +27,9 @@
.B udev
queries the internal database for the name of the device file to be deleted.
.SH "CONFIGURATION"
-All udev configuration files consist of a set of lines of text. All empty
+All
+.B udev
+configuration files consist of a set of lines of text. All empty
lines, and lines beginning with a '#' will be ignored.
.P
@@ -96,11 +98,9 @@
is used.
.P
The line format is:
-.RS
.sp
.I method, key,[key,...] name
.sp
-.RE
where valid methods with corresponding keys are:
.TP
.B CALLOUT
@@ -130,22 +130,13 @@
key: \fBKERNEL_NAME\fP
.P
The methods are applied in the following order:
-.B CALLOUT
-,
-.B LABEL
-,
-.B NUMBER
-,
-.B TOPOLOGY
-,
-.B REPLACE
+.BR CALLOUT ", " LABEL ", " NUMBER ", " TOPOLOGY ", " REPLACE "."
.P
The
.B NAME
and
.B PROGRAM
-fields support simple printf-like string subtitution:
-.RS
+fields support simple printf-like string substitution:
.TP
.B %n
the "kernel number" of the device
@@ -168,7 +159,6 @@
Use the devfs style disk name for this device.
For partitions, this will result in 'part%n'
If this is not a partition, it will result in 'disk'
-.RE
.P
A sample \fIudev.rules\fP might look like this:
.sp
@@ -202,7 +192,7 @@
.br
Every line lists a device name followed by owner, group and permission
mode. All values are separated by colons. The name field may contain a
-wildcard to apply the values to a whole class of devices.
+pattern to apply the values to a whole class of devices.
.br
If
.B udev
@@ -221,9 +211,7 @@
.fi
.P
A number of different fields in the above configuration files support a simple
-form of wildcard matching. This form is based on the fnmatch(3) style, and
-supports the following fields:
-.RS
+form of shell style pattern matching. It supports the following pattern characters:
.TP
.B *
Matches zero, one, or more characters.
@@ -235,8 +223,8 @@
Matches any single character specified within the brackets. For example, the
pattern string "tty[SR]" would match either "ttyS" or "ttyR". Ranges are also
supported within this match with the '-' character. For example, to match on
-the range of all digits, the pattern [0-9] would be used.
-.RE
+the range of all digits, the pattern [0-9] would be used. If the first character
+following the '[' is a '!' then any character not enclosed is matched.
.SH "FILES"
.nf
.ft B
next reply other threads:[~2003-12-04 3:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-04 3:41 Kay Sievers [this message]
2003-12-04 19:23 ` [udev] man page beauty Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-107050944530904@msgid-missing \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.