Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!seismo!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.UUCP Newsgroups: comp.unix.questions Subject: Re: Lost Assignment of var in shell for loop with stdout redirection Message-ID: <5605@brl-smoke.ARPA> Date: Sun, 8-Feb-87 00:50:08 EST Article-I.D.: brl-smok.5605 Posted: Sun Feb 8 00:50:08 1987 Date-Received: Mon, 9-Feb-87 02:39:58 EST References: <354@rlgvax.UUCP> <2171@tektools.TEK.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <2171@tektools.TEK.COM> jerryp@tektools.TEK.COM (Jerry Peek) writes: >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. I was going to supply a modern version for 4.3BSD but Berkeley balked at requiring a UNIX System V source license of their "customers". The current edition of the BRL SVR2 shell can be easily configured to replace a 4BSD /bin/sh. (Info about this was posted not long ago, so I won't repeat it here.)