case
case string ?in? ?pattern body ...? ?default body?
The old form of switch -glob. Use switch in new code.
Examples
A click on an example runs it in the shell of the page.
case abc in {a* {set r yes}}:yes
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.