From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3693 invoked by alias); 9 Oct 2010 17:35:20 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28335 Received: (qmail 22448 invoked from network); 9 Oct 2010 17:35:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=lLBgOWwvPjJNTxXpK+AE6IGYH5zn3V4rK5YYtFyQ738=; b=GKrFkkIX7M9R+0b3v1aekJm1yZooyx/e1a5nvce4KnA0KEc2+3xaq42XY2VliyccPs Hd0q04qNyBtIwGUkrqnn+AUF0pnAKIa1PG/0U9L3t6UkJCjkH7TgSsYuPti/zg5jbjTe gk/YBFoFK+vAw4aCUXrbWYkc1o4ZB5LG8ELxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=r9VNwONItEK7lZ5CKzcgagkiEPm8lWWhHC4lRr1j8/Cs4tEXcJ/kGIkFTj7dt2YNjN zJyQpl5FFx6nHsp+qeCL7jhz+Dq0++lGMR+h0SiwKo1yp4/2k1IlTx7upJ4RcbJHi+OJ thdNGTzV+SZkdk666vNYEhbpEppJHlgrERPmg= MIME-Version: 1.0 Date: Sat, 9 Oct 2010 19:29:42 +0200 Message-ID: Subject: [[ 0 =~ 1 || 1 = 0 ]] returns true From: Mikael Magnusson To: zsh workers Cc: brandon@ifup.org Content-Type: text/plain; charset=UTF-8 % [[ 1 =~ 1 && 0 = 1 ]]; echo $? 0 % [[ 1 =~ 1 || 0 = 1 ]]; echo $? 0 % [[ 1 =~ 0 || 0 = 1 ]]; echo $? 0 % [[ 1 =~ 0 || 1 = 1 ]]; echo $? 1 % [[ 1 =~ 1 || 1 = 1 ]]; echo $? 0 % [[ 1 =~ 1 && 1 = 1 ]]; echo $? 1 % [[ 1 =~ 0 && 1 = 1 ]]; echo $? 1 Something seems to be screwy with =~ and &&/||, on its own it appears fine. -- Mikael Magnusson