bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scope change in loops with "read" built-in


From: Greg Wooledge
Subject: Re: Scope change in loops with "read" built-in
Date: Fri, 5 Apr 2024 07:18:42 -0400

On Thu, Apr 04, 2024 at 08:39:51PM -0400, Dale R. Worley wrote:
> To circumvent that, I've sometimes done things like
> 
>     exec 3<( ... command to generate stuff ... )
>     while read VAR <&3; do ... commands to process stuff ... ; done
>     exec 3<-

Please note that the syntax for closing an FD is 3<&-

I may be a bit hypersensitive to this one, after
<https://bugs.debian.org/1063837>.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]