Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!eurifb!wietse From: wietse@eurifb.UUCP (Wietse Venema) Newsgroups: comp.unix.questions Subject: Re: variables set in sh while loop don't get set? Message-ID: <213@eurifb.UUCP> Date: Mon, 28-Sep-87 18:25:41 EDT Article-I.D.: eurifb.213 Posted: Mon Sep 28 18:25:41 1987 Date-Received: Wed, 30-Sep-87 04:15:53 EDT References: <212@ttrdd.UUCP> Organization: EUR/Bedrijfskunde,PObox 1738,Rotterdam,Neth. Lines: 7 Keywords: sh, ksh scripts, loops Summary: it happens in a sub-shell In the Bourne shell for/case/while/if-else-fi constructs are executed by a child process when the output or input of such a construct is redirected, e.g. when it is part of a pipe. Wietse Venema (uucp: mcvax!eutwc1!wietse) (bitnet: wswietse@heithe5)