From bb58ca1d77889993cad29bb0e5c2b9cd07352d26 Mon Sep 17 00:00:00 2001 From: jzinn <79761+jzinn@users.noreply.github.com> Date: Mon, 4 Jun 2018 21:50:43 -0700 Subject: [PATCH] Add a second call to a different subcommand --- SC2145.md | 1 + 1 file changed, 1 insertion(+) diff --git a/SC2145.md b/SC2145.md index 969a53f..b97ba40 100644 --- a/SC2145.md +++ b/SC2145.md @@ -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`. \ No newline at end of file