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

array contains "foo"



Hi.

I've beat my head against the zsh manual for an hour now, and I can't see how to test whether

x=(foo bar)

contains foo (yes) or contains xyz (no).

Many, many more examples would be helpful--including this one!

Thanks

Dave



Messages sorted by: Reverse Date, Date, Thread, Author