From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 28 Apr 2005 18:30:37 +0000 Subject: Re: Bug#261181: udev: doesn't notice parentheses in rules file Message-Id: <1114713037.4212.28.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="utf-8" Content-Transfer-Encoding: 8bit To: linux-hotplug@vger.kernel.org On Thu, 2005-04-28 at 19:26 +0200, Robert Bihlmeyer wrote: > [dropping bugs.debian.org, as we are on a tangent now] > > Greg KH writes: > > >> I did not know that, I couldn't find detailed documentation about the > >> % escapes. > > > > Does 'man udev' not provide enough information about these? > > In 056 udev(8) tells me that %c exists, but neither about %3c nor > about %c{3}. Is is there for a very long time: ... %c The string returned by the external program, specified in PRO- GRAM (This does not work within the PROGRAM field for the obvi- ous reason.) A single part of the string, separated by a space character may be selected by specifying the part number as an attribute: %c{N} If the number is followed by the + char this part plus all remaining parts of the result string are substituted: %c{N+} ... The count of characters to insert may be limited by specifying the for- mat length value. For example, ’%3s{file}’ will only insert the first three characters of the sysfs attribute. ... Kay ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix _______________________________________________ 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