From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Bihlmeyer Date: Tue, 26 Apr 2005 05:51:43 +0000 Subject: Re: Bug#261181: udev: doesn't notice parentheses in rules file Message-Id: <87sm1ekrv4.fsf@orcus.priv.at> 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 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 %3c third word returned from program Anything after the c is taken literally (except for another %-escape). -- Robbe ------------------------------------------------------- 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