I am learning bash scripting and trying to create a number generator script but somehow the if statement causes a bug
#Take the lower and the upper value from the user
echo "Enter the minimum value:"
read minimum
echo "Enter the maximum value:"
read maximum
#Check the taken values are valid
if [[ $maximum < $minimum ]]; then
echo "Maximum value can't be lower than minimum value"
exit 1
fi
The minimum and maximum values always initialize themselves to % 10, so when the minimum value is 2 and the max 10 it causes an error. Similarly, when giving the min value of 400 and the max 80, it's working when it shouldn't