[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: |
Tue, 2 Apr 2024 16:35:08 -0400 |
On Tue, Apr 02, 2024 at 08:08:57PM +0000, Linde, Evan wrote:
> In a loop constructed like `... | while read ...`, changes to
> variables declared outside the loop only have a loop local
> scope, unlike other "while" or "for" loops.
https://mywiki.wooledge.org/BashFAQ/024