mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Add a second call to a different subcommand
@@ -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`.
|
Reference in New Issue
Block a user