The [[Plan9]] shell. Its syntax is largely based on C.
# Conditionals
```rc
if(<command>) {
# body
}
```
`switch` statement supports pattern matching using wildcards
```rc
switch(word) {
case a
echo a
case b
echo c
case *
echo default
}
```
# Flags
Set flags with `flag <flag> +`
Clear flags with `flag <flag> -`
Test flags with `flag <flag>`
## Standard Flags

The flags *presumably* mirror the flags passed on the command-line when invoking the shell, so the man pages for your implementation *should* include more options.
# Reference
- [9p rc man page](https://9p.io/sys/doc/rc.html)
- [plan9 4th edition paper - rc](https://doc.cat-v.org/plan_9/4th_edition/papers/rc)