lundi 23 mars 2015

Bash - if condition command not found

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 ?


Aucun commentaire:

Enregistrer un commentaire