Add a second call to a different subcommand

jzinn
2018-06-04 21:50:43 -07:00
parent d97638c6d0
commit bb58ca1d77

@@ -56,6 +56,7 @@ main() {
}
main foo aaa bbb
main bar
```
In the above example, inside the `main` function the value of `"$@"` is `( foo aaa bbb )`. The value of `subcommand_"$@"` after expansion is `( subcommand_foo aaa bbb )`, which the shell interprets as a call to `subcommand_foo` with parameters `aaa` and `bbb`.