I have been getting this error for about an hour now. It says:
if: Expression Syntax
when I try to run my shell script. I could not find the problem in the code so I shortened everything down to this simple conditional:
if [ $# -eq 0 ]
then
echo "ERROR - no arguments given"
exit 1
fi
I have looked all over the internet and this syntax appears to be flawless.. So why do I still get the if expression syntax error???