bug-bash
[Top][All Lists]
Advanced

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

Re: BUG??


From: Chet Ramey
Subject: Re: BUG??
Date: Wed, 28 Dec 2016 20:38:15 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 12/28/16 8:09 PM, Peter & Kelly Passchier wrote:
> Is this a bug? These both output "q=1"
> 
> q=1
> [[ ((q==1)) ]] && echo q=1
> 
> q=0
> [[ ((q==1)) ]] && echo q=1
> 

No. These both end up checking whether the length of the string "q==1" is
non-zero, which it is.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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