linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Bug#261181: udev: doesn't notice parentheses in rules file
Date: Thu, 28 Apr 2005 18:30:37 +0000	[thread overview]
Message-ID: <1114713037.4212.28.camel@localhost.localdomain> (raw)
In-Reply-To: <20040913121844.GA6208@wonderland.linux.it>

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 <greg@kroah.com> 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?id\x105hix
_______________________________________________
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

  parent reply	other threads:[~2005-04-28 18:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-13 12:18 Bug#261181: udev: doesn't notice parentheses in rules files Marco d'Itri
2005-04-26  5:51 ` Bug#261181: udev: doesn't notice parentheses in rules file Robert Bihlmeyer
2005-04-26 11:30 ` Kay Sievers
2005-04-28  5:21 ` Robert Bihlmeyer
2005-04-28  6:06 ` Greg KH
2005-04-28 17:26 ` Robert Bihlmeyer
2005-04-28 18:30 ` Kay Sievers [this message]
2005-04-29  5:28 ` Robert Bihlmeyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1114713037.4212.28.camel@localhost.localdomain \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).