From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from oldp.astro.wisc.edu ([128.104.39.15]) by hawkwind.utcs.toronto.edu with SMTP id <2062>; Wed, 15 Sep 1993 14:52:07 -0400 Received: by oldp.astro.wisc.edu (5.65/DEC-Ultrix/4.3) id AA26050; Wed, 15 Sep 1993 13:52:03 -0500 Message-Id: <9309151852.AA26050@oldp.astro.wisc.edu> To: rc@hawkwind.utcs.toronto.edu Subject: Re: Need help with input loop (long) Date: Wed, 15 Sep 1993 14:52:03 -0400 From: Alan Watson X-Mts: smtp > fn read { > $1=`{/usr/bin/line; if(! ~ $status 0) return 1} > } I believe your attempt to return from a command substitution within a function is causing rc to get thoroughly confused. I must admit that I can't decide whether to be appalled or impressed by your novel use of this construct! Getting read right it tricky. I recommend the read command in the FAQ (although make sure you have $nl defined -- fixed in the next version). Alan.