Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

What's wrong with this expression?



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