Was trying a combo if statement with normal [[]] eval and an arith
exp.
in my ENV, (chose a number var at random), LINES=66
So:
echo "LINES=$LINES"
LINES=66
if [[ -z "" && ((LINES == 66 )) ]]; then echo foo; fi
foo
But:
if [[ -z "" && ((LINES < 80 )) ]]; then echo foo; fi
(prints nothing)....
What am I missing?
Thanks, and sorry for the bother if this obvious...
> bash --version
bash --version
GNU bash, version 4.1.10(1)-release (x86_64-suse-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.