From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8250 invoked by alias); 17 Oct 2011 21:16:41 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16497 Received: (qmail 10481 invoked from network); 17 Oct 2011 21:16:30 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at spf.mandic.com.br designates 200.225.81.133 as permitted sender) Message-ID: <4E9C9997.3050306@mandic.com.br> Date: Mon, 17 Oct 2011 19:09:43 -0200 From: "Daniel Serodio (lists)" User-Agent: Postbox 2.5.3 (Macintosh/20110907) MIME-Version: 1.0 To: zsh-users@zsh.org Subject: What's wrong with this expression? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I'm trying to troubleshoot a script that works with bash but fails with zsh, and it uses the "regex match" operator. What's wrong with this expression? [[ "foo" ~= "x" ]] && echo true Fails with "zsh: condition expected: ~=" Thanks in advance, Daniel Serodio