Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
What's wrong with this expression?
- X-seq: zsh-users 16497
- From: "Daniel Serodio (lists)" <daniel.lists@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: What's wrong with this expression?
- Date: Mon, 17 Oct 2011 19:09:43 -0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author