Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!prandt!tweten@AMES-NAS.ARPA
From: tweten@AMES-NAS.ARPA
Newsgroups: net.unix
Subject: Re: Help! Csh is eating my brain....
Message-ID: <2409@brl-tgr.ARPA>
Date: Thu, 24-Oct-85 16:59:43 EDT
Article-I.D.: brl-tgr.2409
Posted: Thu Oct 24 16:59:43 1985
Date-Received: Sat, 26-Oct-85 04:11:56 EDT
Sender: news@brl-tgr.ARPA
Lines: 13

From: pdg@ihdev.UUCP (P. D. Guthrie)

	>		alias readandset 'echo -n \!:1 ; set \!:2 = $< ' 

	Why doesn't ksh have something like  this?  I hate having to use
	fc and mess around with its output - and that's soooo inefficient!

I'm not a ksher, so I can't answer directly, but System V.2 sh has just the
thing, shell functions:

	readandset () { echo "$1\c"; read $2; }

To my eye, at least, it even looks better!