Code
if [[ "${name1}" =~ "${name2}" ]]
then
echo ""
else
echo ""
fi
Error ./main.sh[38]: syntax error: `"${name1}"' missing expression operator
Description So I'm running this to compare two variables in QNX, and am getting this error I thought that was usually caused by whitespace(or a lack of it) but I don't know where I screwed up
Also is it possibly a QNX specific error?
Aucun commentaire:
Enregistrer un commentaire