From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Seewer Philippe <philippe.seewer-omB+W0Dpw2o@public.gmane.org>
Cc: "<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>"
<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] Get rid of cat and grep
Date: Fri, 05 Jun 2009 15:39:17 +0200 [thread overview]
Message-ID: <4A292005.4000404@redhat.com> (raw)
In-Reply-To: <4A2907E7.1080008-omB+W0Dpw2o@public.gmane.org>
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
--
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
next prev parent reply other threads:[~2009-06-05 13:39 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 [this message]
[not found] ` <4A292005.4000404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-06-05 13:40 ` Seewer Philippe
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=4A292005.4000404@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=philippe.seewer-omB+W0Dpw2o@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 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.