[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with builtin 'read' and standard input
From: |
Enrique Perez-Terron |
Subject: |
Re: problem with builtin 'read' and standard input |
Date: |
Tue, 27 Jul 2004 17:56:04 +0200 |
On Tue, 2004-07-27 at 17:22, Paul Jarc wrote:
> Enrique Perez-Terron <enrio@online.no> wrote:
> > < <(some-process) while read var
> > do
> > if some-test
> > then
> > found=true
> > break
> > fi
> > done
>
> The redirection must go after "done". It's a syntax error to put it
> before a compound command.
>
Ooops, thanks!
I believe I used to do it this way in the past (around 1994), perhaps
this has changed. Anyway,
while...; do
...
done < <(some-process)
is fine with me.
Regards,
Enrique