Sometime in the last month or two, the syntax of regular expressions in
devfsd as packaged in Debian woody has changed. It appears that
escaping parentheses for their "special" regex-ish meaning is no longer
necessary, ie. a bare paren is the same as in Perl or awk. I assume
this change was deliberate and intentional; I certainly think it's the
better syntax.
However, the docs are lagging. devfsd.conf(5) has this example:
LOOKUP
^\(\(ide\|scsi\)/host[0-9]\+/bus[0-9]\+/target[0-9]\+/lun[0-9]\+\)/part[0-9]\+$
EXECUTE /sbin/partx -a $mntpnt/\1/disc
and the accompanying text says:
Notice the use
of regular expression substituation in the command "\1",
corresponding to the first set of parentheses in the regu
lar expression being matched (yes, the backslashes are
syntactically necesary for the special meaning of the
parentheses, the vertical bar and the plus sign).
I assume this is just a doc bug, and that either Russell or Richard will
see this and fix it (if they haven't already).
Oh, this is with devfsd 1.3.18-13, the latest in Debian "woody" right
now.
Greg
--
Greg Ward - Linux nerd gward@xxxxxxxxxx
http://starship.python.net/~gward/
A day without sunshine is like night.
|