the shell test operator of -eq is not giving the correct result

The -eq operator is defined for integers:

INTEGER1 -eq INTEGER2

https://man7.org/linux/man-pages/man1/test.1.html

So the results you are seeing are expected.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top