bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug, or am I confused?


From: Linda Walsh
Subject: Bug, or am I confused?
Date: Sun, 10 Jul 2011 11:42:58 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Thunderbird/2.0.0.24 Mnenhy/0.7.6.666

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.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]