Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!ames!oliveb!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.unix.questions Subject: Re: Lost Assignment of var in shell for loop with stdout redirection Message-ID: <13456@sun.uucp> Date: Tue, 17-Feb-87 03:29:46 EST Article-I.D.: sun.13456 Posted: Tue Feb 17 03:29:46 1987 Date-Received: Wed, 18-Feb-87 03:44:51 EST References: <354@rlgvax.UUCP> <2171@tektools.TEK.COM> <5605@brl-smoke.ARPA> Sender: news@sun.uucp Reply-To: guy@sun.UUCP (Guy Harris) Organization: Sun Microsystems, Mountain View Lines: 7 >>shell variables set inside the loop won't be available outside of it. > >The /bin/sh distributed with 4.nBSD (for n <= 4, at least) is a really >old, buggy, puny version of the Bourne shell. Unfortunately, the new, bug-fixed, whizzy version supplied with System V, Releases 2 and 3 does the exact same thing.