Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bcm!shell!nuchat!steve From: steve@nuchat.UUCP (Steve Nuchia) Newsgroups: comp.unix.wizards Subject: Re: Shell scripts - getting parent status in read Message-ID: <7353@nuchat.UUCP> Date: 28 Apr 89 13:43:42 GMT References: <861@marvin.Solbourne.COM> <849@twwells.uucp> <866@marvin.Solbourne.COM> <869@twwells.uucp> Reply-To: steve@nuchat.UUCP (Steve Nuchia) Organization: Houston Public Access Lines: 21 In article <869@twwells.uucp> bill@twwells.UUCP (T. William Wells) writes: > while true > do > read foo > echo "<$foo>" > done >to see what happens. And what happens is that EOF and newline both >set foo to a null string. Try this one: while read foo do echo $foo done -- Steve Nuchia South Coast Computing Services uunet!nuchat!steve POB 890952 Houston, Texas 77289 (713) 964 2462 Consultation & Systems, Support for PD Software.