From: Alan Watson <alan@oldp.astro.wisc.edu>
To: Chris Siebenmann <cks@hawkwind.utcs.toronto.edu>
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re: read
Date: Sun, 16 May 1993 03:51:00 -0400 [thread overview]
Message-ID: <9305160751.AA09920@oldp.astro.wisc.edu> (raw)
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
}
}
next reply other threads:[~1993-05-16 7:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-05-16 7:51 Alan Watson [this message]
-- strict thread matches above, loose matches on Subject: below --
1993-05-18 2:13 read Alan Watson
1993-05-16 6:49 read Alan Watson
1993-05-16 7:12 ` read Chris Siebenmann
1993-05-15 4:14 read Alan Watson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9305160751.AA09920@oldp.astro.wisc.edu \
--to=alan@oldp.astro.wisc.edu \
--cc=cks@hawkwind.utcs.toronto.edu \
--cc=rc@hawkwind.utcs.toronto.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).