[Discuss] cygwin problem

Noel Burton-Krahn noel at burton-krahn.com
Wed Apr 16 16:24:57 PDT 2008


No, bash doesn't buffer the whole results of find before doing the
while.  The pipe causes bash to fork() a new process to do the while
loop.

~Noel



On Wed, Apr 16, 2008 at 3:42 PM, pw <p.willis at telus.net> wrote:
<snip>
> >
> >  find "$DIR" -iname "$DOC_TYPE" | while read FIL; do
> >
<snip>
>
>  The system still buffers the complete file list before
>  iterating the output.(?)
>


More information about the Discuss mailing list