9.7 Interactive Input
set param = $<
The spaces around the equal sign are important. The following script illustrates how to use this.
#!/bin/csh -f
echo -n "Input a phrase " # This built-in echo requires -n to prevent <newline>
set param = $<
echo param=$param
Again, it prompts for input and echoes the results:
% ./read.csh
Input a phrase hello frank # I type in hello frank <return>
param=hello frank