Results 1 to 4 of 4
I am getting this error
line 47: syntax error near unexpected token `else'
line 47: ` else '
I would post my code but it seems I am not allowed ...
- 05-22-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 8
What does this error mean
I am getting this error
line 47: syntax error near unexpected token `else'
line 47: ` else '
I would post my code but it seems I am not allowed to do to the fact it is a school assignment if the admins allow I will post code later on
If not could anyone explain possible remedies for this.
ty for any help in advance
- 05-22-2009 #2
It simply means the compiler found something near else that's out context...
The error message is displaying `else', do you have a ' or ` in your code that doesn't belong...
Note one is a single quote and the other is a back tick
...Gerard4143Make mine Arch Linux
- 05-22-2009 #3Just Joined!
- Join Date
- May 2009
- Posts
- 8
Im sorry what do you mean for i have an `or" because Im pretty sure I dont I am using an or in an if condition but in the form of -o for example
if [ $user_choice = "T" -o $user_choice = "t" ]
then
but im sure this is fine the way i have done it
- 05-25-2009 #4Just Joined!
- Join Date
- Nov 2008
- Posts
- 25
perhaps the compiler can't find a matching if to the else? Perhaps a misplaced accolade?


Reply With Quote