Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug: [ "(" = ")" ] is true
- X-seq: zsh-workers 37366
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug: [ "(" = ")" ] is true
- Date: Wed, 9 Dec 2015 12:27:38 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=959Yo8uvrIfMHX/3gxY0JLrVUfhSKs4+Ey1NEj6Rayg=; b=hZhJ7ulNxGQzHwKX6Vk0E9+8iVx3Ef1/8VnJyfBXJ6uG7RSthULvEjW/Bl6mUNeLKc MOnHGIgyoo6tehIz0PiqwCfQhHGl2/Gb0MBIMHtlH4BgHQbfwuMXMfWBDsL+6B2jeV9F 0DxvgWaE06e1FZQ4AXUnAboyZKqMy8Y4KiyDqjKhOWHX1kjsJw592K06GoKV0n3utJfP vNuSV67Xrmsl/+8+8948rr/96K6PoWddIruEXoWPFey8xSSapuw6FVFgkdW4g91R3FeL Eb3sdE7vUEPZMCPkVBto4tg1u9ntbuSU1Row47DWtZ4eFoiE4TQ0rPB7L4OO3XNz0ybw l8Pg==
- In-reply-to: <56685767.1040000@inlv.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <56684A0A.8010404@inlv.org> <20151209155823.GA10749@chaz.gmail.com> <56685767.1040000@inlv.org>
On Dec 9, 5:31pm, Martijn Dekker wrote:
}
} Wow.
}
} Not only that, the results are incorrect even after the removal.
}
} $ test '(1' -eq ')2' && echo oops || echo ok
} oops
That's because the parens weren't removed, the entire argument that
contains each paren was removed. [ \(1 -eq \)2 ] was becoming [ -eq ].
Messages sorted by:
Reverse Date,
Date,
Thread,
Author