linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] udev - introduce format escape char
Date: Tue, 13 Jan 2004 19:32:09 +0000	[thread overview]
Message-ID: <20040113193209.GA3483@kroah.com> (raw)
In-Reply-To: <20040113021932.GA9850@vrfy.org>

On Tue, Jan 13, 2004 at 08:25:50PM +0100, Kay Sievers wrote:
> On Tue, Jan 13, 2004 at 10:42:35AM -0800, Greg KH wrote:
> > On Tue, Jan 13, 2004 at 03:19:32AM +0100, Kay Sievers wrote:
> > > This patch adds a '%' to the format char list, so that a external
> > > program may called with a non expanded '%' like:
> > > 
> > >   PROGRAM="/bin/date +%%s"
> > > 
> > > Olaf Hering asked for the feature.
> > > A tricky test is also added :)
> > 
> > Hm, does this mean that we can't pass a "%n" to a program as it is
> > something we intrepret (your test seems to verify this)?
> 
> No, it wasn't possible before. That's why we have the escape now.
> If you want to pass any '%' down to a program, you need to ecape it
> by '%%', otherwise we try to expand it with our own format char list.
> 
> I will put in the man page, later today.
> 
> In my stupid test, the program returns a '%n' and this is expanded
> inside the '%c' to the kernel number. I found it funny... :)

Ah, that makes more sense now, thanks.

I need to wake up today...

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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:[~2004-01-13 19:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-13  2:19 [PATCH] udev - introduce format escape char Kay Sievers
2004-01-13 18:42 ` Greg KH
2004-01-13 19:25 ` Kay Sievers
2004-01-13 19:32 ` Greg KH [this message]

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=20040113193209.GA3483@kroah.com \
    --to=greg@kroah.com \
    --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).