cc: [email protected]
Subject: Re: Re: [ast-users] early termination of a "find|while read" loop?
--------
> actually i think i've got this one more or less figured out--swapping the
> fd's a
> round repeatedly seems to do what i need
>
> exec {stdin}<&0-
> find .. | while read -u$fd; do
> exec 0<&$stdin-
> ..
> exec {stdin}<&0-
> done {fd}<&0-
> exec {fd}>&-
> unset fd
> exec 0<&$stdin-
>
Alternatively, a little simpler:
exec {stdin}<&0-
find .. | while read -u$fd; do
...
done {fd}<&0- 0<&$stdin-
David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users