svn commit: r341803 - head/libexec/rc

Warner Losh imp at bsdimp.com
Tue Dec 11 18:04:09 UTC 2018


On Tue, Dec 11, 2018, 9:55 AM John Baldwin <jhb at freebsd.org wrote:

> The 'read' builtin in sh can't use buffering, so it is always going to be
> slow
>

It can't use it because of pipes. The example from the parts of this that
was on IRC was basically:

foo | (read bar; baz)

Which reads one line into the bar variable and then sends the rest to the
bar command.

Warner

>


More information about the svn-src-head mailing list