Subject: Re: sh reads byte by byte
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Aymeric Vincent <vincent@labri.fr>
List: tech-userlevel
Date: 01/21/2007 00:47:00
  Hi,

Manuel Bouyer <bouyer@antioche.eu.org> writes:

> while read a b c; do
> echo $a $b $c
> done < /tmp/file
>
> will read /tmp/file byte by byte. With the current pkg-vulnerabilities

just as a datapoint, I remember reading a bit the sources of sh a long
time ago, and sh used this "feature" when evaluating backquotes: it
redirected its own standard input to read from the subshell.
If someone optimizes sh, this will certainly be something to take into
account.

Regards,
 Aymeric