rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* Re: is there any clever way of doing 'read' in rc scripts?
@ 1991-09-17  8:04 Bengt KLEBERG
  0 siblings, 0 replies; only message in thread
From: Bengt KLEBERG @ 1991-09-17  8:04 UTC (permalink / raw)
  To: rc

Hi,

The simple `{head -1} can then be wrapped into
fn read {
head -1
}

and used like this
var = `read

There are probably snags. Please let me know when you find them. (Is this
so simple that it wouldn't fit in the rc library?)

Best Wishes, Bengt


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1991-09-17 12:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-09-17  8:04 is there any clever way of doing 'read' in rc scripts? Bengt KLEBERG

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).