if fi bash shell script
-
A=1
if [ $A == 1 ] ; then
echo $1
else
echo ??
fiSyntax error: end of file unexpected (expecting "fi")
What is the reason for the continuity error?
-
@heartk What shell are you running ?
If its /bin/csh if ends with an endif
-
-
This post is deleted!