devfs
[Top] [All Lists]

Re: Regex question - maybe devfsd should use REG_EXTENDED

To: Russell Coker <russell@xxxxxxxxxxxx>
Subject: Re: Regex question - maybe devfsd should use REG_EXTENDED
From: Richard Gooch <rgooch@xxxxxxxxxxxxx>
Date: Thu, 18 Oct 2001 16:40:17 +1000
Cc: Greg Ward <gward@xxxxxxxxxx>, devfs@xxxxxxxxxxx
In-reply-to: <20011017175922.D31713656DC@lyta.coker.com.au>
References: <20011013185814.A1334@cthulhu.mems-exchange.org> <20011014233903.B405732889F@lyta.coker.com.au> <200110160215.f9G2FaH26921@mobilix.ras.ucalgary.ca> <20011017175922.D31713656DC@lyta.coker.com.au>
Sender: owner-devfs@xxxxxxxxxxx
Russell Coker writes:
> On Tue, 16 Oct 2001 04:15, Richard Gooch wrote:
> > Cough! As if I know! The regular subexpression code was contributed by
> > Chris Rankin. I assume he tested it, since I think he used it. Check
> > the devfsd.conf(5) man page for examples of regular subexpression use.
> > In that page it tells you what you need to know to get it working. I
> > won't tell you the answer, because I want you to read the manual :-)
> 
> REGISTER        ^ide.*(part.)   CFUNCTION GLOBAL symlink $devname \1
> 
> OK, the above is my test expression.  It is to create symlinks
> /dev/part?  that point to /dev/ide/host*/bus*/target*/lun*/part? (I
> know it's pretty crappy and I wouldn't do it in production but it's
> a usable test).
> 
> I ran it with the regular devfsd freshly compiled and it didn't
> work.

Of course not! devfsd.conf(5) tells you why not.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>