From: "Alexander E. Patrakov" <patrakov@ums.usu.ru>
To: linux-kernel@vger.kernel.org
Subject: Re: patch for "bizarre read bug" in klibc dash
Date: Thu, 15 Jun 2006 11:02:25 +0600 [thread overview]
Message-ID: <4490E9E1.30607@ums.usu.ru> (raw)
In-Reply-To: <bda6d13a0606142145r11628ec2w788117ee2d418e59@mail.gmail.com>
Joshua Hudson wrote:
> Oh, and the original code that found this long ago:
> grep MemFree /proc/meminfo | read J MEMFREE K
> case $MEMFREE in
> ...
> (MEMFREE used several times below)
>
> Had to convert to:
>
> MEMFREE=`grep MemFree /proc/meminfo | (READ J M K ; echo $M)`
> case $MEMFREE in
> ...
Pure-shell implementation:
while read J M K ; do
case "$J" in
MemFree:)
MEMFREE="$M"
esac
done </proc/meminfo
case $MEMFREE in
...
--
Alexander E. Patrakov
prev parent reply other threads:[~2006-06-15 5:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-15 3:19 patch for "bizarre read bug" in klibc dash Joshua Hudson
2006-06-15 3:53 ` Alexander E. Patrakov
[not found] ` <bda6d13a0606142145r11628ec2w788117ee2d418e59@mail.gmail.com>
2006-06-15 5:02 ` Alexander E. Patrakov [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=4490E9E1.30607@ums.usu.ru \
--to=patrakov@ums.usu.ru \
--cc=linux-kernel@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