mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Seewer Philippe <philippe.seewer-omB+W0Dpw2o@public.gmane.org>
To: "<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>"
	<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] Get rid of cat and grep
Date: Fri, 5 Jun 2009 15:40:39 +0200	[thread overview]
Message-ID: <4A292057.704@bfh.ch> (raw)
In-Reply-To: <4A292005.4000404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>



Harald Hoyer wrote:
> On 06/05/2009 01:56 PM, Seewer Philippe wrote:
> ...
> 
>> +incol2() {
>> + local dummy check;
>> + local file="$1";
>> + local str="$2";
>> +
>> + [ -z "$file" ] && return;
>> + [ -z "$str" ] && return;
>> +
>> + while read dummy check ; do
>> + [ "$check" = "$str" ] && return 0
>> + done < $file
>> + return 1
>> +}
> 
> This better has to be:
> 
> - while read dummy check ; do
> + while read dummy check restofline; do

Aye. copy/paste mistake. sorry about that


--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-06-05 13:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-05 11:56 [PATCH] Get rid of cat and grep Seewer Philippe
     [not found] ` <4A2907E7.1080008-omB+W0Dpw2o@public.gmane.org>
2009-06-05 13:39   ` Harald Hoyer
     [not found]     ` <4A292005.4000404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-05 13:40       ` Seewer Philippe [this message]
2009-06-05 14:43   ` David Dillow
     [not found]     ` <1244213032.6963.1.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-05 14:59       ` Harald Hoyer
2009-06-05 15:58   ` Bill Nottingham
     [not found]     ` <20090605155832.GH5107-Zdt1ptygihhQcNjhGXsBABcY2uh10dtjAL8bYrjMMd8@public.gmane.org>
2009-06-05 16:03       ` Warren Togami
     [not found]         ` <4A2941CD.1070709-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-05 18:11           ` Seewer Philippe
     [not found]             ` <4A295FB4.6020306-omB+W0Dpw2o@public.gmane.org>
2009-06-05 18:21               ` Dave Jones
     [not found]                 ` <20090605182106.GA26921-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-05 18:23                   ` Warren Togami
2009-06-05 18:37                   ` David Dillow
     [not found]                     ` <1244227068.6963.37.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-06-05 18:45                       ` Victor Lowther
     [not found]                         ` <759A4D42-1B71-438B-A361-4CFCB6E289E7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-06-05 18:57                           ` David Dillow
2009-06-05 19:37                       ` Seewer Philippe
2009-06-05 16:16       ` Victor Lowther
     [not found]         ` <E0B0F7E0-7880-4219-AE91-B7305665424D-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-06-05 16:38           ` Bill Nottingham
     [not found]             ` <20090605163828.GA7041-Zdt1ptygihhQcNjhGXsBABcY2uh10dtjAL8bYrjMMd8@public.gmane.org>
2009-06-05 16:46               ` Harald Hoyer
2009-06-05 16:51               ` David Dillow
2009-06-05 16:20   ` Victor Lowther
     [not found]     ` <8E821C8B-E7E8-4F71-ACCF-872B463AE3FF-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-06-05 16:49       ` David Dillow

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=4A292057.704@bfh.ch \
    --to=philippe.seewer-omb+w0dpw2o@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.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