[comp.unix.questions] sh -nv hangs on while loops

mkhaw@teknowledge-vaxc.ARPA (Michael Khaw) (06/24/87)

If I have a /bin/sh script that contains:

	while :
	  do
		# various commands
	  done

Under Ultrix 1.2, Sun3.2, HP-UX, Apollo Domain/IX, and NCR SystemV.2, if
I "sh -nv" the script, it hangs after printing out the "done" line.  Is this
a (mis)feature?

csh doesn't have this problem with scripts containing "infinite" loops.

Mike Khaw
-- 
internet:  mkhaw@teknowledge-vaxc.arpa
usenet:	   {hplabs|sun|ucbvax|decwrl|sri-unix}!mkhaw%teknowledge-vaxc.arpa
USnail:	   Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303