From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24827 invoked by alias); 9 Dec 2015 16:31:38 -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: 37365 Received: (qmail 21478 invoked from network); 9 Dec 2015 16:31:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Message-ID: <56685767.1040000@inlv.org> Date: Wed, 09 Dec 2015 17:31:35 +0100 From: Martijn Dekker User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: Re: Bug: [ "(" = ")" ] is true References: <56684A0A.8010404@inlv.org> <20151209155823.GA10749@chaz.gmail.com> In-Reply-To: <20151209155823.GA10749@chaz.gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Stephane Chazelas schreef op 09-12-15 om 16:58: > http://www.zsh.org/mla/users/2007/msg01223.html seems to be to > blame. > > If the first argument starts with a "(" and the last one starts in > a ")", they are both removed. > > So all operators are affected not just "=" ([ "(file1)" -nt > ")file2(" ]...) Wow. Not only that, the results are incorrect even after the removal. $ test '(1' -eq ')2' && echo oops || echo ok oops $ test '1' -eq '2' && echo oops || echo ok ok - M.