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 <2714>; Sun, 16 May 1993 03:51:35 -0400 Received: by oldp.astro.wisc.edu (5.65/DEC-Ultrix/4.3) id AA09920; Sun, 16 May 1993 02:51:01 -0500 Message-Id: <9305160751.AA09920@oldp.astro.wisc.edu> To: Chris Siebenmann Cc: rc@hawkwind.utcs.toronto.edu Subject: Re: read Date: Sun, 16 May 1993 03:51:00 -0400 From: Alan Watson X-Mts: smtp Yes, I know. I don't actually think it is that clumsy. Since awk appeared in read in the examples file, I assumed awk performed unbuffered reads (I was rather surprised, I must admit); direct experiment reveals this not to be the case. I suggest that the read in the EXAMPLES file be replaced with fn read { if ( ! ~ $#* 1 ) { echo >[1=2] Usage: read variable return 1 } var = $1 { ifs = $nl { * = `{ line ; echo $status } } $var = $1 return $2 } }