Re: Getting user input
From: Chris Mattern (syscjm_at_gwu.edu)
Date: Tue, 19 Aug 2003 16:33:24 -0400
> On Wed, 09 Jul 2003 18:29:31 +0000, Kenny McCormack wrote:
>>In article <UVSOa.firstname.lastname@example.org>,
>>John <email@example.com> 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'`
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