Unable to read Environment Variable

view story

http://www.unix.com – Hi I have created the following shell script file with the following content. Quote: #!/bin/csh set VAR1="abcxyz" << EOF EOF echo "---------------------" echo "VAR1 = $VAR1" echo "---------------------" i am not able to echo the previously set VAR1. Can any one suggested what could be wrong? Thanks, Srinivas (HowTos)