* Re: Bug#261181: udev: doesn't notice parentheses in rules file
2004-09-13 12:18 Bug#261181: udev: doesn't notice parentheses in rules files Marco d'Itri
@ 2005-04-26 5:51 ` Robert Bihlmeyer
2005-04-26 11:30 ` Kay Sievers
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Robert Bihlmeyer @ 2005-04-26 5:51 UTC (permalink / raw)
To: linux-hotplug
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_id\x14396&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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Bug#261181: udev: doesn't notice parentheses in rules file
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
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Kay Sievers @ 2005-04-26 11:30 UTC (permalink / raw)
To: linux-hotplug
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_id\x14396&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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Bug#261181: udev: doesn't notice parentheses in rules file
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
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Robert Bihlmeyer @ 2005-04-28 5:21 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers <kay.sievers@vrfy.org> writes:
>> 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.
I did not know that, I couldn't find detailed documentation about the
% escapes.
> I don't understand anything else in this mail, especially not the the
> relation with the mail Subject. What is the problem here?
I'm sorry it was noted in the bugtracking system that this feature
request was already forwarded to the hotplug list, so I thought you
know about this issue. See
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug&1181
for the whole thing. I think the original request can't be fulfilled
sensibly...
--
Robbe
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Bug#261181: udev: doesn't notice parentheses in rules file
2004-09-13 12:18 Bug#261181: udev: doesn't notice parentheses in rules files Marco d'Itri
` (2 preceding siblings ...)
2005-04-28 5:21 ` Robert Bihlmeyer
@ 2005-04-28 6:06 ` Greg KH
2005-04-28 17:26 ` Robert Bihlmeyer
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2005-04-28 6:06 UTC (permalink / raw)
To: linux-hotplug
On Thu, Apr 28, 2005 at 07:21:47AM +0200, Robert Bihlmeyer wrote:
> Kay Sievers <kay.sievers@vrfy.org> writes:
>
> >> 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.
>
> I did not know that, I couldn't find detailed documentation about the
> % escapes.
Does 'man udev' not provide enough information about these?
thanks,
greg k-h
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Bug#261181: udev: doesn't notice parentheses in rules file
2004-09-13 12:18 Bug#261181: udev: doesn't notice parentheses in rules files Marco d'Itri
` (3 preceding siblings ...)
2005-04-28 6:06 ` Greg KH
@ 2005-04-28 17:26 ` Robert Bihlmeyer
2005-04-28 18:30 ` Kay Sievers
2005-04-29 5:28 ` Robert Bihlmeyer
6 siblings, 0 replies; 8+ messages in thread
From: Robert Bihlmeyer @ 2005-04-28 17:26 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
[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}.
--
Robbe
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Bug#261181: udev: doesn't notice parentheses in rules file
2004-09-13 12:18 Bug#261181: udev: doesn't notice parentheses in rules files Marco d'Itri
` (4 preceding siblings ...)
2005-04-28 17:26 ` Robert Bihlmeyer
@ 2005-04-28 18:30 ` Kay Sievers
2005-04-29 5:28 ` Robert Bihlmeyer
6 siblings, 0 replies; 8+ messages in thread
From: Kay Sievers @ 2005-04-28 18:30 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Bug#261181: udev: doesn't notice parentheses in rules file
2004-09-13 12:18 Bug#261181: udev: doesn't notice parentheses in rules files Marco d'Itri
` (5 preceding siblings ...)
2005-04-28 18:30 ` Kay Sievers
@ 2005-04-29 5:28 ` Robert Bihlmeyer
6 siblings, 0 replies; 8+ messages in thread
From: Robert Bihlmeyer @ 2005-04-29 5:28 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers <kay.sievers@vrfy.org> writes:
> Is is there for a very long time:
Yes, I am a dummy. I had a stone-old /usr/share/man/man8/udev.8 lying
around which overrode udev.8.gz belonging to the newest package...
--
Robbe
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 8+ messages in thread