Computing.Net > Forums > Linux > syntax error: unexpected end of file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

syntax error: unexpected end of file

Reply to Message Icon

Name: psj
Date: May 9, 2002 at 23:11:28 Pacific
Comment:

Hi;

I am getting an error which I do not understand when I execute the following script on RH 7.2.


#! /bin/csh -f

set count = 1
set limit = 8
echo "Still going ..."
while ( $count < $limit )
echo "count = $count , and going ......"
set count = `expr $count + 1`
end
echo "and gone"

I executed the script like this

./test.csh
and I am getting the following error;

Still going ...
bash: ./test.csh: line 12: syntax error: unexpected end of file


Could anyone help me?



Sponsored Link
Ads by Google

Response Number 1
Name: junky_toof
Date: May 11, 2002 at 01:12:01 Pacific
Reply:

while ()
is terminated with
done;

You are a pain addict to use csh for
scripting.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: syntax error: unexpected end of file

syntax error: unexpected end of fil www.computing.net/answers/linux/syntax-error-unexpected-end-of-fil/30155.html

Amsn unexpected end of file www.computing.net/answers/linux/amsn-unexpected-end-of-file/23770.html

Bash Script Unexpected end of file www.computing.net/answers/linux/bash-script-unexpected-end-of-file/27450.html