Hello,
In a Bourne shell script in testing a string value I am getting erroneous results. The script below should output yellow but it outputs green instead.
What can you advise?
Thanks,
Michael42
In a Bourne shell script in testing a string value I am getting erroneous results. The script below should output yellow but it outputs green instead.
What can you advise?
Code:
#!/bin/sh
COLOR="yellow"
if [ $COLOR -eq "green" ]
then
echo "green"
else
echo "yellow"
fi
Thanks,
Michael42