[Top][All Lists]

[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: Thunderbird/ Mnenhy/

Was trying a combo if statement with normal [[]] eval and an arith

in my ENV, (chose a number var at random), LINES=66

 echo "LINES=$LINES"
 if [[ -z "" && ((LINES == 66 )) ]]; then echo foo; fi

 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]