Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!uw-beaver!teknowledge-vaxc!mkhaw From: mkhaw@teknowledge-vaxc.ARPA (Michael Khaw) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: sh -nv hangs on while loops Message-ID: <13990@teknowledge-vaxc.ARPA> Date: Wed, 24-Jun-87 01:23:31 EDT Article-I.D.: teknowle.13990 Posted: Wed Jun 24 01:23:31 1987 Date-Received: Thu, 25-Jun-87 06:19:13 EDT Organization: Teknowledge, Inc., Palo Alto CA Lines: 18 Xref: mnetor comp.unix.questions:2927 comp.unix.wizards:2907 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