Assume there are three valid values for a Bash variable $x: foo, bar, and baz. How does one write an expression to determine whether $x is one of these values? In Python, for example, one might write:
x in ('foo', 'bar', 'baz')
Is there a Bash equivalent, or is it necessary to perform three comparisons? Again, in Python, one could write:
x == 'foo' or x == 'bar' or x == 'baz'
What's the correct way to express the above in Bash?