Re: Getting user input

From: Chris Mattern (
Date: 08/19/03

Date: Tue, 19 Aug 2003 16:33:24 -0400

Taka wrote:
> On Wed, 09 Jul 2003 18:29:31 +0000, Kenny McCormack wrote:
>>In article <UVSOa.749$>,
>>John <replyto@newsgroup.please> wrote:
>>>Apologies for the stupid question,
>>>In csh, how do I get a script to wait for user input and then assign
>>>that input to a variable when retun is pressed ?
>>>Something similar to 'read' in ksh would be great
>>set var=`ksh -c 'read line;echo $line'`
> lol

You can laugh, but it's actually the best way to do it.
&< reads from your tty, not your stdin. *You can't
redirect it.* There is no way to ask csh to read from

                  Chris Mattern