From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 26 Apr 2005 11:30:52 +0000 Subject: Re: Bug#261181: udev: doesn't notice parentheses in rules file Message-Id: <1114515052.16740.24.camel@localhost.localdomain> List-Id: References: <20040913121844.GA6208@wonderland.linux.it> In-Reply-To: <20040913121844.GA6208@wonderland.linux.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, 2005-04-26 at 07:51 +0200, Robert Bihlmeyer wrote: > Marco: > > There is nothing udev can do about this, because %c(1) is a valid device > > name. > > Which shows an ambiguity in the syntax: > > '%c{1}' is taken to mean the first word returned from a program. It > could also be taken for the complete string returned from a program, > followed by a literal '{1}'. If I want the second alternative, how do > I write that? > > A more regular syntax would be (for example): > > %c whole string returned from program It is that way. > %3c third word returned from program This is the length parameter which limit the output to 3 chars. > Anything after the c is taken literally (except for another %-escape). I don't understand anything else in this mail, especially not the the relation with the mail Subject. What is the problem here? Kay ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel