I have the following shell script to query the python version. It gives me an error stating "Integer expression expected" on the if-statement.
#!/bin/bash
PYTHON_VERSION=`python -c 'import sys; print("%i" % (sys.hexversion<0x03000000))'`
echo $PYTHON_VERSION
if [ $PYTHON_VERSION -eq 0 ]
then
echo "fine!"
fi
'echo $PYTHON_VERSION' prints out '0', so why dosn't the if-statement work?
EDIT: I am using Windows and Cygwin