zsh-users
 help / color / mirror / code / Atom feed
* What's wrong with this expression?
@ 2011-10-17 21:09 Daniel Serodio (lists)
  2011-10-17 21:21 ` Dan Nelson
  2011-10-17 21:21 ` Mikael Magnusson
  0 siblings, 2 replies; 12+ messages in thread
From: Daniel Serodio (lists) @ 2011-10-17 21:09 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-10-19  8:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-17 21:09 What's wrong with this expression? Daniel Serodio (lists)
2011-10-17 21:21 ` Dan Nelson
2011-10-17 21:21 ` Mikael Magnusson
2011-10-17 21:27   ` Daniel Serodio (lists)
2011-10-17 21:30     ` Mikael Magnusson
2011-10-17 21:31       ` Daniel Serodio (lists)
2011-10-17 21:43         ` Mikael Magnusson
2011-10-17 21:49           ` Daniel Serodio (lists)
2011-10-18  4:19     ` Phil Pennock
2011-10-18 13:08       ` Daniel Serodio (lists)
2011-10-19  8:26         ` Phil Pennock
2011-10-18  6:28     ` Benjamin R. Haskell

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).