I am trying to execute the following shell script
#!/bin/csh
if [[ $# != 1 || $1 != "first" && $1 != "second" ]]
then
echo "Error: Usage: $0 [first|second]"
exit 1
fi
but I am getting an error:
if: Expression Syntax.
I have no idea what's wrong with that syntax. It looks fine to me. please help.