"Today we're going to look at variable scoping within a
piped-while-loop in a few Linux and Unix shells. We're actually
almost at this point in our series of ongoing posts regarding bash,
Perl and awk porting.
"Probably the most interesting thing about zsh (and shells that
share its characteristic, in this sense) is that the scope of
variables passed through a pipe is slightly different than in other
shells, like bash and ksh (Note that not all vendor's versions are
equal even if they have the same name...!)"
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.