Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!convex!uunet!bria!mike Newsgroups: comp.unix.questions Subject: Re: Bourne to read? Message-ID: <492@bria> Date: 1 Mar 91 07:49:31 GMT References: <1991Feb28.160948.24987@hoss.unl.edu> Reply-To: uunet!bria!mike Distribution: na Organization: MGI Group International, Los Angeles, CA Lines: 19 Followup-To: Keywords: In an article, sardion.unl.edu!mosemann (Russell Mosemann) writes: > > In the Bourne shell, why does this not work > > echo words | read W > > but this does (if I put the words in the file) > > read W < file The read is in a different instance of the shell. The shell forks the read, and proceeds to create/modify the environment variable. When the child dies, so does its environment. -- Michael Stefanik, MGI Inc., Los Angeles| Opinions stated are not even my own. Title of the week: Systems Engineer | UUCP: ...!uunet!bria!mike ------------------------------------------------------------------------------- Remember folks: If you can't flame MS-DOS, then what _can_ you flame?