All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: %c option does not handle LF as a seperator
Date: Wed, 03 Mar 2004 01:59:21 +0000	[thread overview]
Message-ID: <20040303015921.GA12710@vrfy.org> (raw)
In-Reply-To: <2F75A5CCEF1E6A4C8CA2E75CF7F529E902036598@orsmsx409.jf.intel.com>

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

On Tue, Mar 02, 2004 at 05:06:53PM -0800, Sabharwal, Atul wrote:
>  but I Am not sure by just adding LF to the list of seperators would fix it.

Seems so, it works for me. You may try it if you like:

   BUS="scsi", PROGRAM="/sbin/scsi_id", RESULT="SSEAGATE ST318436LW*3BM07NKA000070456Z6B", NAME="disk-sda-%c{3}"

thanks,
Kay

[-- Attachment #2: 01-multiline-result.patch --]
[-- Type: text/plain, Size: 363 bytes --]

===== namedev.c 1.121 vs edited =====
--- 1.121/namedev.c	Tue Mar  2 01:02:05 2004
+++ edited/namedev.c	Wed Mar  3 02:35:03 2004
@@ -282,7 +282,7 @@
 				pos2 = temp1;
 				while (i) {
 					i--;
-					pos3 = strsep(&pos2, " ");
+					pos3 = strsep(&pos2, " \n\r");
 					if (pos3 == NULL) {
 						dbg("requested part of result string not found");
 						break;

  parent reply	other threads:[~2004-03-03  1:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-03  0:36 %c option does not handle LF as a seperator Sabharwal, Atul
2004-03-03  0:42 ` Greg KH
2004-03-03  0:46 ` Kay Sievers
2004-03-03  0:51 ` Sabharwal, Atul
2004-03-03  1:02 ` Kay Sievers
2004-03-03  1:06 ` Sabharwal, Atul
2004-03-03  1:14 ` Patrick Mansfield
2004-03-03  1:23 ` Sabharwal, Atul
2004-03-03  1:32 ` Sabharwal, Atul
2004-03-03  1:59 ` Kay Sievers [this message]
2004-03-03  2:28 ` Sabharwal, Atul
2004-03-04 12:05 ` Hannes Reinecke
2004-03-04 22:51 ` Patrick Mansfield

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=20040303015921.GA12710@vrfy.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.