I would like to execute a quite simple test by using :
YY=${array[17]}
echo $YY
if [ "$YY" -ne 0 ]
then
echo "do.."
else
echo "here"
fi
But this code returns :
0
./script.sh: line 303: $'[\302\2400': command not found
What I do wrong ?
[will fail. In almost all cases it is better the use double[[i.eif [[ "$YY" -ne 0 ]]$'\302\240'is the character U+00A0 NO-BREAK SPACE. Replace the unbreakable space by an ordinary space.