Shell scripts - getting parent status in read

Steve Nuchia steve at nuchat.UUCP
Fri Apr 28 23:43:42 AEST 1989


In article <869 at twwells.uucp> bill at 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.



More information about the Comp.unix.wizards mailing list